Subject: data() function not returning the typed value of a node Author:(Deleted User) Date:06 Jul 2005 05:14 AM
Hi,
>according to the XQuery standard this here:
>data(<x xsi:type="xs:integer">042</x>) should return 42
>However Stylus returns the full string 042
This used to be true in a previous version of the specs, when constructed nodes were automatically validated; in the current version the user need to manually specify where validation will occur (e.g. data(validate {<x xsi:type="xs:integer">042</x>}) )
Note: currently Stylus will report a validation error if "x" is not a global element in a loaded schema.