RE: [xsl] String parsing in XSLT/XPath?

Subject: RE: [xsl] String parsing in XSLT/XPath?
From: "Sullivan, Dan" <dsullivan@xxxxxxxxxxx>
Date: Sat, 8 Sep 2001 05:17:37 -0700
If all you want to do is to preserve the formatting of the address lines
the html <pre> tag may give you what you want, for example

<xsl:template match="ADDRESS">
<pre><xsl:value-of select="."/></pre>


-----Original Message-----
From: Ying Qin [mailto:yqin@xxxxxxxxxx]
Sent: Friday, September 07, 2001 9:33 PM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject: [xsl] String parsing in XSLT/XPath?

Hi, gurus,

Could anyone please shed some light on the problem I've been struggling
a while?

I need to transform an XML doc to an HTML doc.  There is one element
contains multiple lines and will need to be shown in the HTML doc as
multiple lines as well.  Bascially I will need to put <BR/> to the end
each line of that element.

Here is the piece of XML
<ADDRESS>address line1
address line2
address line3</ADDRESS>

And I expect the HTML piece to be,
address line1<BR/>
address line2<BR/>
address line3<BR/>

Any idea?

 XSL-List info and archive:

 XSL-List info and archive:

Current Thread