Re: [xml-dev] XML design of ((a and b) or c)

From
Rick Marshall <>
To
Michael Kay <>
Date
2006-12-15T22:37:55Z
ID
<>
Thread
Re: [xml-dev] XML design of ((a and b) or c)
oh for a ternary operator...

Michael Kay wrote:
>> In fact, you can't even safely write 
>>
>> //x[y castable as xs:integer][xs:integer(y) > 100]
>>     
>
> But if you don't like the wordiness of the if-then-else, another option is:
>
> //x[xs:integer(y[. castable as xs:integer]) > 100]
>
> Michael Kay
> http://www.saxonica.com/
>
>
>