xsl-list
[Top] [All Lists]

Re: copy-of problem...

2003-07-14 03:54:16
Hi Dave,

Given XML input of the form

<description>HereâEUR$(1s (Ba Google search for a famous phrase, &lt;a
href="http://www.google.com/search?q=to+be+or+not+to+be";>to be or not to
be&lt;/a>; give it a try and see what happens.
... </description>

As usual, the easiest recourse here is to use DOE (this is what it's
designed for):

<xsl:template match="description">
  <xsl:value-of select="." disable-output-escaping="yes" />
</xsl:template>

Or complain to the feed until they give you XML rather than this
hybrid. Or do a text-level pre-process that unescapes all the relevant
characters in the <description> element, so that you can then process
the content with XSLT.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>