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'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Trying to put a <BR> in a string parameter
- From: Kerin Cosford <Kerin dot Cosford at current-drugs dot com>
- Date: Fri, 13 Jul 2001 13:51:20 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
It's possible that <xsl:value-of select="."/><br/> is working fine - have
you viewed source in your browser, and had a look if the br tag is there?
Most browsers choke on <br/>. The other option when generating them through
XSL is to use <br class="none"/>.
-----Original Message-----
From: Daniel Newman [mailto:daniel.newman@bis-web.com]
Sent: 13 July 2001 12:50
To: xsl-list@lists.mulberrytech.com
Subject: [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