[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: What the default datatype of an stylesheet paramet
This is outside the scope of the XSLT specification, and depends on the
designer of the API. In Saxon, arguments are passed as xs:untypedAtomic
values, and are then converted to the required type (if declared) using
the standard function conversion rules. This means that if you declare
the value as xs:integer (say), and pass the untypedAtomic value "3", it
will be converted to an integer; if you declare the expected type as
xs:boolean, then you can pass true, false, 0 or 1. If you don't declare
the required type, the value will remain as an xs:untypedAtomic value -
which is why ($foo instance of xs:string) is false.
Michael Kay Saxonica On 24/11/2011 20:19, Matthieu Ricaud-Dussarget wrote: Hi all,
|
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
|