|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XML Schema question: A <xs:choice> equivalent for attributes?
Eddie Robertsson wrote: <snip/> > <xs:element name="socketHandler"> > <xs:annotation> > <xs:appinfo> > <sch:pattern xmlns:sch="http://www.ascc.net/xml/schematron"> > <sch:rule context="socketHandler"> > <sch:report test="self::*[@hostName][@hostAddress]" > > On a <tag> element, if there is the attribute "attr", the > child element <attr> must be prohibited and vice versa.</sch:report> That message isn't very good at all. It should be something like: <sch:report test="self::*[@hostName][@hostAddress]"> On a <sch:name/> element only one of the attributes hostName and hostAddress are allowed, not both.</sch:report> Sorry for the confusion Cheers, /Eddie
|
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
|
|||||||||

Cart








