xslt - XSL select value of xml attribute as integer -


i trying select xml attributes decimal values integers. example

<itemin quantity="1.0"> 

the value of @quantity must selected integer i.e. 1.

i using

<xsl:value-of select="@quantity"> 

is there way select quantity integer i.e. 1 ?

thanks.

use xslt format-number() function single # format this:

<xsl:value-of select="format-number(@quantity, '#')" /> 

Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -