OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

relax-ng message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: Including relax-ng schema in my schema?

In reading the spec and tutorial, it is not clear to me how I would 
define my own pattern which contains the relax-ng pattern.  Here is 
basically what I want to do:

<!-- ... -->
 <StructureDefinition xmlns:rng="http://relaxng.org/ns/structure/0.9">
  <rng:grammar ns="http://mydocument.com/ns/1.0">
        <rng:start><rng:ref name="name" /></rng:start>
        <rng:define name="name">
            <rng:element name="Name"><rng:text /></rng:element>
<!-- ... -->

How exactly do I enable this in the relax-ng schema for MyDocument?  In 
a DTD, I might do this:

<!ENTITY % rng SYSTEM "rng.dtd">
<!ELEMENT MyDocument (StructureDefinition)>
<!ELEMENT StructureDefinition (grammar|element)>

Thanks in advance,

Matthew MacKenzie
XML Global

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC