Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

Translate uni example to inline editing: msg#00010

Subject: Translate uni example to inline editing
Hi chregu

Started playing with current head version of bxeng. It really seems
matured since I tried it last time. 

Especially I'm amazed about the unizh example and wondered if it's
possible to translate this example into bitflux-cms. My current goal is
to be able to have something like this:

<iba>
  <tree/>
  <page>
    <Article>
      <main>
        <any code that's legal xhtml and would normally be
<body>here</body>/>
      </main>
    </Article>
  </page>
</iba>


Found the starting point in xhtml/modules/struct.rng.xml (<define
name="body"><ref name="Block.model"/></define>) and then tried it with a
relax file like this:

<?xml version="1.0" encoding="UTF-8"?>
<grammar ns=""
         xmlns="http://relaxng.org/ns/structure/1.0";
         xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0";
         xmlns:dc="http://purl.org/dc/elements/1.1/";
         xmlns:dcterms="http://purl.org/dc/terms/";
         xmlns:xhtml="http://www.w3.org/1999/xhtml";
         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes";
         >

<include href="xhtml.rng.xml">

  <start>
    <element name="iba">
      <element name="tree">
        <empty/>
      </element>
      <element name="page">
        <element name="Article">
          <attribute name="ID">
            <data type="NCName"/>
          </attribute>
          <element name="ID">
            <data type="integer"/>
          </element>
          <element name="main">
            <ref name="Block.model"/>
          </element>
          <element name="title">
            <text/>
          </element>
          <element name="lang">
            <data type="NCName"/>
          </element>
          <element name="lang">
            <text/>
          </element>
          <element name="uri">
            <text/>
          </element>
          <element name="username">
            <text/>
          </element>
        </element>
      </element>
    </element>
  </start>

</include>

</grammar>

But actually this doesn't work. :-( Complaining e.g. about "b is not
allowed as child of p"
Is it possible at all?
Where are the essential points to look after?
Is it a ns issue?

Thanks for any help on this.

Cheerz
Michael


-- 
bx-editor-dev mailing list
bx-editor-dev@xxxxxxxxxxxxxxxx
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev



<Prev in Thread] Current Thread [Next in Thread>