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

Subject: RE: [xsl] Peserving html in xsl:value-of select
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 14 Feb 2007 17:58:35 -0000
You should use <xsl:copy-of> if you want a straight copy, or
<xsl:apply-templates> if you want to do any processing of the subtree.

You could have gone to any reference book and looked up "xsl:value-of"; you
might have had to follow a cross-reference to find an explanation of the
string-value of an element node.

Michael Kay 

> -----Original Message-----
> From: John Steel [mailto:john.steel@xxxxxxxxxxxxxxx] 
> Sent: 14 February 2007 17:15
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Peserving html in xsl:value-of select
> Hi,
> This is the XML fragment
>  <faq>
>   <q>
>    Question one.
>   </q>
>   <a>
>    The answer is <a href='here.jsp'>here</a>.
>    </a>
>  </faq>
> 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?
> --
> --------------------------
> john.steel@xxxxxxxxxxxxxxx

Current Thread