[oXygen-user] Validating merged grammars

George Cristian Bina
Tue Sep 7 02:54:37 CDT 2004


Hi Paul,

According with the Relax NG specification:
<quote
src="http://www.oasis-open.org/committees/relax-ng/spec-20011203.html#IDASNZ
R">
 A grammar must have a start child element.
</quote>

Oxygen uses Jing (2003-06-19) for Relax NG validation support.

Best Regards,
George
-------------------------------------------------------------
George Cristian Bina mailto:
<oXygen/> XML Editor - http://www.oxygenxml.com/


----- Original Message -----
From: "Paul Everitt" <>
To: <>
Sent: Tuesday, September 07, 2004 10:18 AM
Subject: [oXygen-user] Validating merged grammars


>
> Hi.  The first example in the Relax-NG tutorial under 9.3 "Merging
> Grammars" looks like this:
>
> <grammar xmlns="http://relaxng.org/ns/structure/1.0"
>      xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
> datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
>      <define name="inline">
>          <zeroOrMore>
>              <ref name="inline.class"/>
>          </zeroOrMore>
>      </define>
>      <define name="inline.class">
>          <choice>
>              <text/>
>              <element name="bold">
>                  <ref name="inline"/>
>              </element>
>              <element name="italic">
>                  <ref name="inline"/>
>              </element>
>          </choice>
>      </define>
> </grammar>
>
> However, <oxygen/> fails to validate, claiming it requires a <start>
> element.
>
> --Paul
>
> _______________________________________________
> oXygen-user mailing list
> 
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>



More information about the oXygen-user mailing list