Re: XPath MOD 10 calculation
I must be sleepy or something. "for $i in $x[position() mod 2 = 0] return $i" is the same as " $x[position() mod 2 = 0]" of course ;) and that comma should be a right parenthesis:
sum( for $i in $x[position() mod 2 = 1] return $i * 3, $x[position() mod 2 = 0]) = number(substring(., string-length(.) - 1, 1))
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format