Hello folks,
I am trying to set a fixed value to a tag in XML on comparing to a value in condition. such as
<xsl:when test="(//TestInput='XYZA') OR (//TestInput='XYZB') OR (//TestInput='XYZC') OR (//TestInput='XYZD')">abcd</xsl:when>
when i trying to run the transformation with an XML with tag <TestInput>, it is giving me an error as
Extra illegal tokens: '(', '/', '/', 'TestInput', '=', ''XYZA'', ')', 'OR', '(', '/', '/', 'TestInput', '=', ''XYZB'', ')', 'OR', '(', '/', '/', 'TestInput', '=', ''XYZC'', ')', 'OR', '(', '/', '/', 'TestInput', '=', ''XYZD'', ')'
Please help me out in setting the value to this tag based on condition using OR operator in where clause.
Thanks in Advance
Case matters with XML/XSLT/XPath so use
orinstead ofOR.