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: Redefinition of named <start>


Hi,
 
I'm trying to figure out what the correct behaviour of the following should be:
 
A.rng:
 
<grammar>
  <start name="start">
    <element name="x">
      <optional>
        <ref name="start"/>
      </optional>
    </element>
  </start>
</grammar>
 
B.rng
 
<grammar>
  <include href="A.rng">
    <define name="start">
      <element name="y">
        <optional>
          <ref name="start"/>
        </optional>
      </element>
    </define>
  </include>
</grammar>
 
Jing rejects the instance <y><y/></y> given the B.rng grammar.
The tutorial states that a named start is just a shorthand for (given the example above)
 
<start>
  <ref name="start"/>
</start>
<define name="start">...</define>
 
So I expected the <y><y/></y> instance to be valid, but Jing wants <x><y/></x>.
 
What is the correct behavior?
 
Cheers,
 
</David>
 
David Rosenborg
Pantor Engineering AB
 


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


Powered by eList eXpress LLC