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

Re: testing for string and number in XSLT 2.0 was Re:

Subject: Re: testing for string and number in XSLT 2.0 was Re: Test For Numeric Values?
From: James Fuller <jim.fuller@xxxxxxxxxxxxxx>
Date: Fri, 08 Apr 2005 14:09:59 +0200
testing a string for type
>You'd like a boolean datatype, so long as it isn't the boolean datatype
>defined in XML Schema, yes?
>How exactly would you like it to differ?
no difference at all, though I am arguing for the use cases that do not
require the formalism of schema e.g. or even datatypes;

I think that having a simple (is-number / is-string) type functions that
purely test values irregardless of datatype would give just enough
flexibility; and if these functions return boolean then we avoid the
problems such as u describe with something like type-of might present.

exslt:type-of($x) = 'decimal'

in any event, we can include it as a MAY HAVE type option and leave it
to implementators to decide to implement or not.


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.