Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: XSL / XPATH: how to test if text contains apostrophe XSL / XPATH: how to test if text contains apostropheTo: NULL Date: 7/2/2005 1:59:00 AM Hallo, for some reasons of calling functions with parameters, i have to test if a text-node contains an apostrophe. My problem is that i cannot write something like <xsl:if test="contains(., ''')">. So i tried using entities or escaping, like that: <xsl:if test="contains(., ''')"> or: <xsl:if test="contains(., '\'')"> but both didn't work. Further problem is that i have to translate these apostrophes into escaped ones like \' (<xsl:value-of select="translate(., ''', '\'')" /> or <xsl:value-of select="translate(., '\'', '\'')" />). Is there any way solving this problem. Thanks a lot for your help. Michael | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
