You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Dale Christ <de...@yahoo.com> on 2004/04/03 03:19:51 UTC

RelaxNG help

All--

Is there anyone who can give me a little help with setting up RelaxNG with the
blog publication and the BXE editor?  I'm really confused here.  I tried
lenya's default entry.rng file with no success at all. (I got numerous
validation errors when I started BXE.  I then moved on to a more "generic"
format.  The current RNG file is use is this:


Start file ------->
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns:echo="http://purl.org/atom/ns#" ns="" 
xmlns="http://relaxng.org/ns/structure/1.0" 
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
  <start>
    <element name="echo:entry">
      <attribute name="version">
        <data type="decimal"/>
      </attribute>
      <element name="echo:title">
        <text/>
      </element>
      <element name="echo:summary">
        <text/>
      </element>
      <element name="echo:author">
        <element name="echo:name">
          <data type="NCName"/>
        </element>
      </element>
      <element name="echo:link">
        <data type="anyURI"/>
      </element>
      <element name="echo:id">
        <text/>
      </element>
      <element name="echo:created">
        <data type="NMTOKEN"/>
      </element>
      <element name="echo:issued">
        <data type="NMTOKEN"/>
      </element>
      <element name="echo:modified">
        <data type="NMTOKEN"/>
      </element>
      <element name="echo:content">
        <attribute name="type"/>
        <oneOrMore>
          <element name="p">
            <oneOrMore>
              <choice>
                <text/>
              </choice>
            </oneOrMore>
          </element>
        </oneOrMore>
      </element>
    </element>
  </start>
</grammar>
End File <-------


This works, but the only problem is that I can only use plain text with it.  I
can't make the text any richer (bold, italic, underline, links, etc).  I tried
using trang to generate the .rng file, but the rng file that is generated won't
work correctly.  I'd like to include anything you could include in an xhtml
document.  If someone coule help me get past the first couple elements, I could
(and would be more than happy to) complete the work on the .rng file.

Thanks for any help.

--Dale


__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: RelaxNG help

Posted by Michael Wechner <mi...@wyona.com>.
Dale Christ wrote:

>All--
>
>Is there anyone who can give me a little help with setting up RelaxNG with the
>blog publication and the BXE editor?  I'm really confused here.  I tried
>lenya's default entry.rng file with no success at all.
>

well, the element "summary" needs to be optional, but BXE seems
to have a bug there (please see my comment within entry.rng).
If you remove it completely then it works.

I guess I need to invite Chregu to a beer ;-)

Michi

> (I got numerous
>validation errors when I started BXE.  I then moved on to a more "generic"
>format.  The current RNG file is use is this:
>
>
>Start file ------->
><?xml version="1.0" encoding="UTF-8"?>
><grammar xmlns:echo="http://purl.org/atom/ns#" ns="" 
>xmlns="http://relaxng.org/ns/structure/1.0" 
>datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
>  <start>
>    <element name="echo:entry">
>      <attribute name="version">
>        <data type="decimal"/>
>      </attribute>
>      <element name="echo:title">
>        <text/>
>      </element>
>      <element name="echo:summary">
>        <text/>
>      </element>
>      <element name="echo:author">
>        <element name="echo:name">
>          <data type="NCName"/>
>        </element>
>      </element>
>      <element name="echo:link">
>        <data type="anyURI"/>
>      </element>
>      <element name="echo:id">
>        <text/>
>      </element>
>      <element name="echo:created">
>        <data type="NMTOKEN"/>
>      </element>
>      <element name="echo:issued">
>        <data type="NMTOKEN"/>
>      </element>
>      <element name="echo:modified">
>        <data type="NMTOKEN"/>
>      </element>
>      <element name="echo:content">
>        <attribute name="type"/>
>        <oneOrMore>
>          <element name="p">
>            <oneOrMore>
>              <choice>
>                <text/>
>              </choice>
>            </oneOrMore>
>          </element>
>        </oneOrMore>
>      </element>
>    </element>
>  </start>
></grammar>
>End File <-------
>
>
>This works, but the only problem is that I can only use plain text with it.  I
>can't make the text any richer (bold, italic, underline, links, etc).  I tried
>using trang to generate the .rng file, but the rng file that is generated won't
>work correctly.  I'd like to include anything you could include in an xhtml
>document.  If someone coule help me get past the first couple elements, I could
>(and would be more than happy to) complete the work on the .rng file.
>
>Thanks for any help.
>
>--Dale
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Small Business $15K Web Design Giveaway 
>http://promotions.yahoo.com/design_giveaway/
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: lenya-user-help@cocoon.apache.org
>
>
>  
>


-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com              http://cocoon.apache.org/lenya/
michael.wechner@wyona.com                        michi@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org


Re: RelaxNG help

Posted by Michael Wechner <mi...@wyona.com>.
Dale Christ wrote:

>All--
>
>Is there anyone who can give me a little help with setting up RelaxNG with the
>blog publication and the BXE editor?  I'm really confused here.  I tried
>lenya's default entry.rng file with no success at all.
>

well, the element "summary" needs to be optional, but BXE seems
to have a bug there (please see my comment within entry.rng).
If you remove it completely then it works.

I guess I need to invite Chregu to a beer ;-)

Michi

> (I got numerous
>validation errors when I started BXE.  I then moved on to a more "generic"
>format.  The current RNG file is use is this:
>
>
>Start file ------->
><?xml version="1.0" encoding="UTF-8"?>
><grammar xmlns:echo="http://purl.org/atom/ns#" ns="" 
>xmlns="http://relaxng.org/ns/structure/1.0" 
>datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
>  <start>
>    <element name="echo:entry">
>      <attribute name="version">
>        <data type="decimal"/>
>      </attribute>
>      <element name="echo:title">
>        <text/>
>      </element>
>      <element name="echo:summary">
>        <text/>
>      </element>
>      <element name="echo:author">
>        <element name="echo:name">
>          <data type="NCName"/>
>        </element>
>      </element>
>      <element name="echo:link">
>        <data type="anyURI"/>
>      </element>
>      <element name="echo:id">
>        <text/>
>      </element>
>      <element name="echo:created">
>        <data type="NMTOKEN"/>
>      </element>
>      <element name="echo:issued">
>        <data type="NMTOKEN"/>
>      </element>
>      <element name="echo:modified">
>        <data type="NMTOKEN"/>
>      </element>
>      <element name="echo:content">
>        <attribute name="type"/>
>        <oneOrMore>
>          <element name="p">
>            <oneOrMore>
>              <choice>
>                <text/>
>              </choice>
>            </oneOrMore>
>          </element>
>        </oneOrMore>
>      </element>
>    </element>
>  </start>
></grammar>
>End File <-------
>
>
>This works, but the only problem is that I can only use plain text with it.  I
>can't make the text any richer (bold, italic, underline, links, etc).  I tried
>using trang to generate the .rng file, but the rng file that is generated won't
>work correctly.  I'd like to include anything you could include in an xhtml
>document.  If someone coule help me get past the first couple elements, I could
>(and would be more than happy to) complete the work on the .rng file.
>
>Thanks for any help.
>
>--Dale
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Small Business $15K Web Design Giveaway 
>http://promotions.yahoo.com/design_giveaway/
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: lenya-user-help@cocoon.apache.org
>
>
>  
>


-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com              http://cocoon.apache.org/lenya/
michael.wechner@wyona.com                        michi@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org