Forum How do I...?

How do I format xslt address for xml

WilliamTi
Hello everyone
I have a xslt document which pulls address from an xml document. I want the output to be in separate lines like this
<AddressFullText>
542 E Main Street SE
Apartment 204B
Montreal
Onatario, Canada 99999
</AddressFullText>

How do I accomplish this?

XSLT document
Code: Select all

<AddressFullText>
<xsl:value-of select="AddressLine1"/>
<xsl:value-of select="AddressLine2"/>
<xsl:value-of select="AddressLine3"/>
<xsl:value-of select="AddressLine4"/>
</AddressFullText>
Thanks.
mikeday
You can add this between each line:
<xsl:text>&#xA;</xsl:text>

However this question would be better asked on an XSLT forum. :)