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

Re: Saxon Div Issue

Subject: Re: Saxon Div Issue
From: "G. Ken Holman g.ken.holman@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 19 Jan 2015 16:52:32 -0000
Re:  Saxon Div Issue
At 2015-01-19 16:41 +0000, Mailing Lists Mail daktapaal@xxxxxxxxx wrote:
So Solution is to do :
 <xsl:variable name="num" select="xs:decimal(/xpath/num)"/>

Yes ... Martin already guided you accordingly ... I was trying to help you with your terminology and understanding of why Martin suggested what he did:


One caveat, though, is that that code assumes you have a single <num> element. If you have many <num> elements then the cast must happen on each one, not as above:

<xsl:variable name="nums" select="/xpath/num/xs:decimal(.)"/>

But that is not needed in your example since you only asked for one number ... I'm just trying to anticipate what problems you might experience.

I hope this is helpful.

. . . . . . . Ken

-- Check our site for free XML, XSLT, XSL-FO and UBL developer resources | Free 5-hour lecture: http://www.CraneSoftwrights.com/links/video.htm | Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ | G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx | Google+ profile: http://plus.google.com/+GKenHolman-Crane/about | Legal business disclaimers: http://www.CraneSoftwrights.com/legal |

--- This email has been checked for viruses by Avast antivirus software. http://www.avast.com

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.