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
Post a Comment