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

RE: Using or ignoring Types in XSLT 2.0 / XPath 2.0

Subject: RE: Using or ignoring Types in XSLT 2.0 / XPath 2.0
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 13 May 2003 19:49:42 +0100
RE:  Using or ignoring Types in XSLT 2.0 / XPath 2.0
> In XSLT v2.0, even for a Basic 
> XSLT Processor, this is a run-time failure that I can't 
> recover from.  Somebody else must see this a problem or I am 
> missing something big somewhere in the literature.

The error isn't recoverable, but it is preventable. Before attempting
the conversion of a string to a dateTime, you can test:

<xsl:if test="$x castable as xs:dateTime">

This way you can ensure that a run-time error will not occur on invalid

Michael Kay

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

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.