This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Trying to put a <BR> in a string parameter
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Trying to put a <BR> in a string parameter
- From: "Rachid Taji" <rachid dot taji at wokup dot com>
- Date: Fri, 13 Jul 2001 14:15:29 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
try to add disable-output-escaping="yes" to your select
<xsl:value-of select="'<br/>'" disable-output-escaping="yes"/>
Rachid
-----Message d'origine-----
De : owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]De la part de Daniel
Newman
Envoyé : vendredi 13 juillet 2001 13:50
À : xsl-list@lists.mulberrytech.com
Objet : [xsl] Trying to put a <BR> in a string parameter
Hello all,
I can't figure out what's going on here, so hopefully someone can help.
I have a template I'm calling, and I'm passing it a string (someone's
address). The address is made up of multiple Nodes. I'm looping through
these nodes and adding there text content to my parameter.
<xsl:with-param name="Value">
<xsl:for-each
select="RetrieveNameAndAddressRSResponse/*[starts-with(local-name(),
'NameAddress') and preceding-sibling::*[generate-id() =
generate-id($comma-element)]]">
<xsl:value-of select="." />
</xsl:for-each>
</xsl:with-param>
The loop is fine, and does pass the whole address to the parameter, but I
want to introduce a <BR> tag after each line. I've tried everything I can
think of, but the tag does not want to appear.
This seems like the simplest way of doing it, but it doesn't work:
<xsl:value-of select="." /><br/>
And I've tried
<xsl:value-of select="<br/>" />
<xsl:value-of select="'<br/>'" />
<xsl:value-of select="'<br/>'" />
<xsl:value-of select="<br/>" />
But none of them worked - except for <xsl:value-of select="'<br/>'" />
which wrote all those < to the page, so my page was displaying "street
name<br>town name<br>county name", not quite I wanted. But if I converted
them to proper tags, it didn't work. Just ignored it completely.
I'm most confused. Hope someone can help.
Thanks,
Daniel Newman.
Bis-Web Ltd.
Tel: 01993 880614
Fax: 01993 881625
****************************************************************************
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the
material from any computer.
****************************************************************************
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list