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: Re: Issue: shall we restrict subordinates of <oneOrMore>



> If a <oneOrMore> element has an <attribute> descendant, it must not have a
> <group> or <interleave> descendant.

This prohibits

<zeroOrMore>
  <choice>
    <attribute><anyName/></attribute>
    <group>
      <element/><element/>
    </group>
  </choice>
</zeroOrMore>

Which is somewhat artificial, but still harmless. So I would suggest

If a <oneOrMore> element has an <attribute> descendant, there may not be
any <group> or <interleave> between <oneOrMore> and <attribute>.

In other words,

If <group> or <interleave> is used under <oneOrMore>, then it cannot
contain any <attribute>.


--
Kohsuke KAWAGUCHI                          +1 650 786 0721
Sun Microsystems                   kohsuke.kawaguchi@eng.sun.com



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


Powered by eList eXpress LLC