xsl-list
[Top] [All Lists]

RE: [xsl] XSLT 2.0/XPath 2.0 Date arithmetic

2006-05-18 07:01:37
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/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--