|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: testing for string and number in XSLT 2.0 was Re:
> I repeated your experiment with Saxon 8.4, changing only the variable > definition of $y to: > > <xsl:variable name="y" select="data(example/test/text())"/> > > and still got: > > $y variable value: 132131 > Test as string:false > Test as integer:false > > It seems to me that the test as xs:string should be positive, because > the typed value of a text node must be by definition xs:string. > No, the typed value of a text node is by definition untypedAtomic - see http://www.w3.org/TR/xpath20/#id-typed-value untypedAtomic is a chameleon type that is automatically cast to the type required by the context where it is used. Michael Kay http://www.saxonica.com/
|
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
|

Cart








