[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: XML Schema question: A <xs:choice> equivalent for attributes?
- From: Eddie Robertsson <eddie@allette.com.au>
- To: "Spoonauer, Michael" <Michael.Spoonauer@FMR.COM>,"'xml-dev@lists.xml.org'" <xml-dev@lists.xml.org>
- Date: Tue, 03 Jul 2001 15:10:13 +1000
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