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

Schema aware XPath 2.0 doubt

Subject: Schema aware XPath 2.0 doubt
From: Mukul Gandhi <gandhi.mukul@xxxxxxxxx>
Date: Sat, 9 May 2009 10:08:18 +0530
 Schema aware XPath 2.0 doubt
Hi all,
   Let's say, I have following XML document:


And the following XPath 2.0 expression,

x gt xs:date('2007-12-01')

The evaluation of this expression fails, with non schema aware XSLT
2.0/XPath 2.0 system (as x is not of type xs:date. it's actually an

But if we had a Schema aware XSLT 2.0/XPath 2.0 system, and the above
XML document was validated with a Schema (with element x being
assigned a Schema type xs:date), would the above XPath 2.0 expression
succeed in this case (i.e., with a Schema aware XPath 2.0 system)?

The XPath 2.0 specification for operator, op:date-greater-than (ref,

op:date-greater-than($arg1 as xs:date, $arg2 as xs:date) as xs:boolean

which makes me think that, both arguments to the operator 'gt' must be
of type xs:date. So the XPath 2.0 expression [1] would fail in case of
Schema aware system also.

Could somebody please clarify this to me.

Mukul Gandhi

Current Thread


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.
First Name
Last Name
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-2013 All Rights Reserved.