xsl-list
[Top] [All Lists]

RE: String to integer conversion

2005-03-11 11:26:55
 

Can any one tell me how I can convert a string to integer and 
a decimal
to integer in XSLT.

XSLT 1.0 doesn't have decimal and integer types, it only has "number", which
is double-precision floating point. 

In XSLT 2.0 you can convert a string to an integer using
xs:integer($string), and a decimal to an integer using xs:integer($decimal).

Michael Kay
http://www.saxonica.com/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



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