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

RE: XSLT 2.0/XPath 2.0 Date arithmetic

Subject: RE: XSLT 2.0/XPath 2.0 Date arithmetic
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 18 May 2006 15:01:04 +0100
RE:  XSLT 2.0/XPath 2.0 Date arithmetic
> In this case, you might also write your function to emit some 
> kind of error condition if the incoming string is not in the 
> right form.

You can always do <xsl:message terminate="yes">.

One thing I've done occasionally is to define a union type that allows
xs:date or **error** as its member types. That's a bit cumbersome though.
Really, XSLT needs a proper exception handling mechanism built in to the
language.

Michael Kay
http://www.saxonica.com/

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