Re: [xsl] xsl:value-of, not shows html tags

Subject: Re: [xsl] xsl:value-of, not shows html tags
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Thu, 6 Mar 2003 11:54:52 +0000
Hi Qazi,

> <xsl:variable name="QHelp"><b>Preblem : </b>this is solution <br/>
> more text here </xsl:variable>
>
> when is output this variable, I cant see the my text bold and no
> <br> works. what is the problem with this , i use <xsl:value-of
> select="$QHelp"/>

Use <xsl:copy-of> rather than <xsl:value-of>. <xsl:value-of> gives you
the string value of whatever you select, and the string value of
something is always a plain string without any structure.
<xsl:copy-of> gives you an exact copy of whatever you select.

Cheers,

Jeni

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


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


Current Thread