|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: entity reference...
Hi Fei, > I have data like this > > <teaser>Get more information on <a href="http://www.abc.com">ABC</a> web site.</teaser> > > The output html needs to be this > Get more information on <a href="http://www.abc.com">ABC</a> web site.</teaser> > > instead of > Get more information on <a href="http://www.abc.com">ABC</a> web site. You could use the disable-output-escaping attribute on <xsl:value-of>: <xsl:value-of select="teaser" disable-output-escaping="yes" /> The disable-output-escaping attribute disables the usual escaping of the XML-significant characters & and <, instead writing them literally to the result. Note that disable-output-escaping won't be honoured in all situations, but you might get lucky. It would be much better for all concerned if you could persuade whoever's providing you with this XML to use unescaped, well-formed HTML within the <teaser> element. Then you would be able to just copy the contents directly. Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








