Re: [xsl] Peserving html in xsl:value-of select

Subject: Re: [xsl] Peserving html in xsl:value-of select
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Wed, 14 Feb 2007 17:26:40 +0000
On 2/14/07, John Steel <john.steel@xxxxxxxxxxxxxxx> wrote:

This is the XML fragment
   Question one.
   The answer is <a href='here.jsp'>here</a>.

When I use <xsl:value-of select='a' /> at the appropriate place all I
get out is
The answer is here
 i.e. no tags are preserved. What have I missed please, and to avoid
similar basic questions where could I have gone to find out please?

You need <xsl:copy-of select="a"/>

The best thing to do is buy a book, I guess (Jeni Tennison has a nice
writing style for the beginner).  Read every post to xsl-list, and
browse Dave Pawson's faq:

Current Thread