how to get bxe work with lenya with none xhtml?

Peter Heintz <[email protected]> Mon, 6 Sep 2004 13:50:24 +0000 (UTC)
Newsgroups gmane.editors.bitflux.general
Message-ID <[email protected]>
After fiddling around with different versions of lenya and bxe my last
problem has gone somehow.
But I am still not able to get bxe working for none xhtml doctypes.

Here is one of my attempts based in the bxe inline example to get
it work within lenya.


1) I copied the releaxng.xml to . \config\doctypes\schemas\iba.rng

2) I copied inline.xml to .\config\doctypes\samples\iba.xml




3) I added 

  </doc>
      <doc type="iba">
    <children>
      <doc type="iba"/>
    </children>
    <creator src="org.apache.lenya.cms.authoring.DefaultBranchCreator">
      <sample-name>iba.xml</sample-name>
    </creator>
    <tasks>
      <task id="publish"/>
    </tasks>
    <workflow src="workflow.xml"/>
  </doc>

to .\config\doctypes\doctypes.xconf


4) I add

<item uc:usecase="create" uc:step="showscreen" href="?
doctype=iba"><i18n:text>New Iba</i18n:text></item>

to .\config\menus\generic.xsp

5) I added 
        <sourcetype name="iba">
          <document-element local-name="iba"/>
        </sourcetype>

to parameter-doctype.xmap

6) I copied inline.css to resources .\shared\css\iba.css

7) I copied ./xslt/page2xhtml-homepage.xsl to ./xslt/page2xhtml-iba.xsl


8 I create iba2xhtml.xsl

<?xml version="1.0"?>

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:default="http://cocoon.apache.org/lenya/pubs/default/1.0" 
xmlns="http://www.w3.org/1999/xhtml">
 <xsl:template match="default:links">
   <div id="title" bxe_xpath="/iba/page/Article/title">
          Bitflux Editor - The Wysiwyg XML Editor 
   </div>
   <div id="main" bxe_xpath="/iba/page/Article/main"> </div>
 </xsl:template>
</xsl:stylesheet>

What I receive from bxe is twice the message that there is no bxe_xpath
definition found.

I have also some other tries not based in the bxe inline example with 
almost the same behaviour if I replace the bxe_path by a “*”
I get one element but no childs shown in the top left select box of bxe.

For any idea are welcome

Peter


-- 
bx-editor-users mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-users