MaKSiNG
Technical User
- Dec 4, 2003
- 19
Hi All,
I am attempting to test for a string in the value of one of my XML elements. But this string in the XML is enclosed by apostrophes.
My XSL line looks like:
Now this works for a string which is not enclosed in the apostrophes.
This would be the logical solution but does not obviously work:
I am thinking I need an escape character before the second apostrophe but might be barking up the wrong tree completely, besides I do not know what the escape character in XSL is. Is there a better solution?
Thx,
MaKS
I am attempting to test for a string in the value of one of my XML elements. But this string in the XML is enclosed by apostrophes.
My XSL line looks like:
Code:
<xsl:if test="metadata/categories!='Life and Work Events'">
...
</xsl:if>
Now this works for a string which is not enclosed in the apostrophes.
This would be the logical solution but does not obviously work:
Code:
<xsl:if test="metadata/categories!=''Life and Work Events''">
...
</xsl:if>
I am thinking I need an escape character before the second apostrophe but might be barking up the wrong tree completely, besides I do not know what the escape character in XSL is. Is there a better solution?
Thx,
MaKS