[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XPath 2 sequence item type determination

Subject: Re: XPath 2 sequence item type determination
From: Justin Johansson <mail@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 03 Sep 2008 02:30:34 +0900
Re:  XPath 2 sequence item type determination
Thanks again David.
I will think that out and hopefully will not find any hole in that argument.
Sounds goods so far ...

At 05:54 PM 2/09/2008 +0100, you wrote:
>
>
>> Though, say, if one wants to stick to standards and not proprietary
>> extensions, then surely the suggestion of using a series of "if instance
>> of" is problematic in that it is relying on the external string
>> representation of the type (via xsd schema) to guess the type of the
>> (internal) XDM item?
>
>No. Why do you say that? The item may never have been near an xsd
>schema.
>
>If you have a sequence
>
>(1,'1',true(),'true')
>
>then a nested test with instance of will show those types as xs:integer,
>xs:string, xs:boolean and xs:string respectively.
>
>this does not depend on any internals of the XSL processor the result is
>determined by the xpath spec. (I am assuming here that xs: is bound to
>the xsd schema namespace)
>
>
>David

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.