xsl-list
[Top] [All Lists]

Re: [xsl] Saxon Div Issue

2015-01-19 11:05:39
Thanks Ken.


On Mon, Jan 19, 2015 at 11:52 AM, G. Ken Holman 
g(_dot_)ken(_dot_)holman(_at_)gmail(_dot_)com
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
At 2015-01-19 16:41 +0000, Mailing Lists Mail daktapaal(_at_)gmail(_dot_)com 
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:

  http://markmail.org/message/3axf5ajrkzvyossv

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(_at_)CraneSoftwrights(_dot_)com |
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

--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>