[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Why does my XSLT produce a Warning message with n
Hi Roger,
I don't know why Saxon doesn't determine that the xs:integer() branch will only be reached when normalize-space($test) has a length > 0. Interestingly, there is no warning (only a dynamic error when executing) for $test ! xs:integer(.) div 10 Maybe generate the following expression, it won't cause a warning either, and it will give the same result as your code (with an additional check that $test is actually castable as xs:integer): $test[. castable as xs:integer] ! xs:integer(.) div 10 or for XPath 2.0 for $t in $test[. castable as xs:integer] return xs:integer($t) div 10 Gerrit On 31.03.2024 09:56, Roger L Costello costello@xxxxxxxxx wrote: Hi Folks,
Registergericht / Commercial Register: Amtsgericht Leipzig Registernummer / Registration Number: HRB 24930 GeschC$ftsfC<hrer / Managing Directors: Gerrit Imsieke, Svea Jelonek, Thomas Schmidt
|
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
|