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

From
Michael Kay <>
To
'Michael Kay' <>, 'Rick Marshall' <>, 'Ken North' <>
Date
2006-12-15T11:58:09
ID
<00b501c72040$4a265390$6401a8c0@turtle>
Thread
RE: [xml-dev] XML design of ((a and b) or c)
> 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/