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

Subject: RE: [xsl] Trying to put a <BR> in a string parameter
From: "Rachid Taji" <rachid.taji@xxxxxxxxx>
Date: Fri, 13 Jul 2001 14:15:29 +0200
try to add disable-output-escaping="yes" to your select

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


-----Message d'origine-----
De : owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]De la part de Daniel
Envoyé : vendredi 13 juillet 2001 13:50
À : xsl-list@xxxxxxxxxxxxxxxxxxxxxx
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">
'NameAddress') and 	preceding-sibling::*[generate-id() =
		<xsl:value-of select="." />

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="'&lt;br/&gt;'" />
<xsl:value-of select="&lt;br/&gt;" />

But none of them worked - except for <xsl:value-of select="'&lt;br/&gt;'" />
which wrote all those &lt; 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.

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:

 XSL-List info and archive:

Current Thread