[Home] [By Thread] [By Date] [Recent Entries]

  • From: Eddie Robertsson <eddie@a...>
  • To: "Spoonauer, Michael" <Michael.Spoonauer@F...>,"'xml-dev@l...'" <xml-dev@l...>
  • 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 &lt;tag> element, if there is the attribute "attr", the
> child element &lt;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



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member