[Home] [By Thread] [By Date] [Recent Entries]
So "number('+5')" should result in NaN. In XSLT 1.0, yes, it should. In XSLT 2.0 it should result in the integer 5. Saxon 9.x correctly reports the result 5. Saxon 6.5.5 correctly reports the result NaN. They are non-compliant with XSLT 1.0, yes. 2) Is the following a good workaround?It depends a bit on the syntax you want to accept and the error checking you want to perform. For many purposes, number(translate($str, '+','')) would work adequately. Michael Kay Saxonica
|

Cart



