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: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Fri, 13 Jul 2001 13:12:43 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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.
>
> 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/>
That's the correct way to do it. The reason it didn't work probably lies in
the way you used the parameter value, not in the way you constructed it.
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list