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

Re: [XSL 3.0] Function that check if a xs:string can b

Subject: Re: [XSL 3.0] Function that check if a xs:string can be converted as a xs:double
From: "David Carlisle d.p.carlisle@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 31 May 2023 15:56:22 -0000
Re:  [XSL 3.0] Function that check if a xs:string can b
On Wed, 31 May 2023 at 16:08, Piez, Wendell A. (Fed) wendell.piez@xxxxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> Hello,
>
> As an academic exercise it is still interesting to ponder what might be
> done without 'castable as'.
>
> I think it was Ken H who once suggested (context of XSLT 1.0)
> select="number($str) = number($str)" as NaN is not equal to itself. I can't
> say where he got it. (In XPath 1.0 one was forced to be creative.) Or
> whether it would work for you in the given context or indeed corresponds to
> 'castable as'.
>

"NaN"  is  true for castable as, but false for number = number

>
> Regards, Wendell

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.