Re: [xsl] Trying to put a <BR> in a string parameter

Subject: Re: [xsl] Trying to put a <BR> in a string parameter
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 13 Jul 2001 14:14:41 +0100
> try to add disable-output-escaping="yes" to your select
If you need to do that then 99 times out of 100 it is because you are
doing something wrong.

In particular you should not do

> <xsl:value-of select="'&lt;br/&gt;'" disable-output-escaping="yes"/>

you should do <br/>
which is simpler and will work on any XSL engine
(disable-output-escaping is not guaranteed to work anywhere) 

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

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


Current Thread