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

Subject: RE: [xsl] Trying to put a <BR> in a string parameter
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 13 Jul 2001 13:12:43 +0100
> 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:

Current Thread