I want to convert a string value in xslt to an integer value. I am using xslt 1.0, so i can’t use those functions supported in xslt 2.0.
Please help.
I want to convert a string value in xslt to an integer value. I
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Adding to jelovirt’s answer, you can use number() to convert the value to a number, then round(), floor(), or ceiling() to get a whole integer.
Example