Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: optional, but at least one required

From: "Virginia Wiswell" <vwiswell@-------.--->
To: "Michael Kay" <mike@--------.--->,"'Pete Cordell'" <petexmldev@--------------.--->, "'Marie Bilde Rasmussen'" <mariebilderas@-----.--->
Date: 10/11/2007 10:37:00 AM
That's a pretty straightforward solution. I look forward to using it 
:)

Regarding the previous message, Michael, where does one draw the line 
at including every rule in the schema? Some things are more easily 
done when processing, for sure. But it's good to know that I can't get 
arrested for leaving something out of the schema :)

On Thu, 11 Oct 2007 14:38:13 +0100
  "Michael Kay" <mike@s...> wrote:
> 
>> XSD1.1 is looking at adding an xs:assert schema directive 
>> that includes a set of xpath expressions that a construct 
>> (sequence/choice/etc.) must satisfy.  I would be interested 
>> to know how complicated such an expression for this use-case 
>> would be if anyone cared to submit an example.
> 
> You can write it as
> 
>  <xs:sequence>
>    <xs:element ref="a" minOccurs="0"/>
>    <xs:element ref="b" minOccurs="0"/>
>  </xs:sequence>
>  <xs:assert test="a|b"/>
> 
> Michael Kay
> http://www.saxonica.com/
> 
> 
> 


From philippe.poulard@s... Fri Oct 12 07:44:09 2007
Received: from 


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent