miraclemaker
Programmer
Hi guys. I'm havin serious problems trying to match and XML node using XSL based on he value of an attribute when the attribute value has a single quote in it. Here's an example:
XML:
XSL:
- the single quote in the value of attribute 'title' is causing me real problems. I've read there's no way to escape a string in XPath, but this problem must have come up before. Does anyone have a solution?
Many thanks.
XML:
Code:
<gameGroup priority="5" title="Kids' Favorites">
XSL:
Code:
<xsl:template match="gameGroup[@title='Kids' Favorites']">
- the single quote in the value of attribute 'title' is causing me real problems. I've read there's no way to escape a string in XPath, but this problem must have come up before. Does anyone have a solution?
Many thanks.