I have a xsl file which is fetching data and storing in a variables .I have a value 1 stored in a variable . Now i want to modify the variable value i.e. if it contains 1 it should be replaced by activated . How can i do it ?
Thanks in advance
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.
http://www.w3schools.com/xsl/el_variable.asp
Let’s say you have this:
Then, everywhere you need, you can use the following section (works in XSLT 1.0) and it will put
activatedvalue in your output if$varis equal to 1 (or the value of$varotherwise).Or you can declare new variable:
In this case, you will have to use instruction to print it in the output: