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


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] XML schema -- specify a relationship between attributes?

[ Lists Home | Date Index | Thread Index ]


I will say this time:
"you can do this very easily in Relax NG"

<element name="myElement">
    <attribute name="name"><data type="string"/></attribute>
     <attribute name="myattr"><data type="boolean"/></attribute>

or, in compact syntax:

element myElement {
   attribute name { xsd:string },
   attribute myattr { xsd:boolean }?

Best Regards,
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS