Re: <attribute/> after <text/>?

John Cowan <[email protected]>
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
David Tolpin scripsit:

> is it legal to have
> 
> <element name="x">
>   <text/>
>   <attribute name="y"/>
> </element>

Sure.  Because attribute ordering doesn't matter in XML, RNG always treats
attribute patterns in a group pattern (in this case, an implicit one)
as if they were interleaved.  Therefore, they can appear in any position
when they are children of an element pattern.

-- 
Using RELAX NG compact syntax to        John Cowan
develop schemas is one of the simple    http://www.reutershealth.com
pleasures in life....                   http://www.ccil.org/~cowan
        --Jeni Tennison                 <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.