how to test if my condition is this;
<xsl:if test="node = '1' or node='2'">
<input name="list_{@id}" value="{@id}" type="checkbox"/>
</xsl:if>
Is IF statement allowed OR condition? Please advice..
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.
No, but XPath has an
oroperator — do note that XPath is case-sensitive language.The XPath expression in the provided code:
is syntactically correct.
oris a standard XPath operator and can be used to combine two subexpressions.Here is a complete XSLT transformation example:
When this transformation is applied on the following XML document:
the wanted, correct result is produced (all elements copied with the exception of
<num>03</num>and<num>05</num>: