Here's another way which is quote-proof: <xsl:variable name="child-text">Child's Text</xsl:variable> <xsl:value-of select="Parent[Child=$child-text]"/>
Isaac Hands wrote: > I am having trouble with the xalan-J processor when I try to specify an > XPath that includes an apostrophe in a conditional statement as follows: > > Parent[Child='Child's Text'] > > I need to use this xpath in an <xsl:value-of> element to select this node as > follows: > > <xsl:value-of select="Parent[Child='Child's Text']"/> >
