Try

<xsl:value-of select="Parent[Child=&quot;Child's Text&quot;]"/>



Christian

--On Donnerstag, 23. Mai 2002 10:55 -0400 Isaac Hands <[EMAIL PROTECTED]> 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']"/>

So, naturally I thought that I could use the escaping characters for my
embedded apostrophes like this:

<xsl:value-of select="Parent[Child='Child&apos;s Text']"/>

But, no, I get this error from the xalan-j processor:

javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException: Expected ], but found: s      at
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(Transforme
rFactoryImpl.java:995)  at
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Transfor
merFactoryImpl.java:799)

Apparently, the xalan processor is assuming that my escaped apostrophe is
the end of the text string inside the conditional, which is obviously
wrong. Can someone please shed some light on this problem ?

Thanks


_________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx





Reply via email to