[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XML schema -- specify a relationship between attributes?
Hi, I will say this time: "you can do this very easily in Relax NG" :) <element name="myElement"> <optional> <group> <attribute name="name"><data type="string"/></attribute> <optional> <attribute name="myattr"><data type="boolean"/></attribute> </optional> </group> </optional> </element> or, in compact syntax: element myElement { ( attribute name { xsd:string }, attribute myattr { xsd:boolean }? )? } Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|