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

  • From: Rick Marshall <rjm@z...>
  • To: Michael Kay <mike@s...>
  • Date: Sat, 16 Dec 2006 09:37:55 +1100

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/
>
>
>   


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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