How do I format xslt address for xml

Questions about XML that are not covered by the other forums should go here.
Posts: 53

How do I format xslt address for xml

Wed Jul 09, 2014 9:43 pm

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

How do I accomplish this?

XSLT document

Code: Select all

        <xsl:value-of select="AddressLine1"/>
   <xsl:value-of select="AddressLine2"/>
   <xsl:value-of select="AddressLine3"/>
   <xsl:value-of select="AddressLine4"/>
Posts: 2471

Re: How do I format xslt address for xml

Thu Jul 17, 2014 5:01 pm


Before the first xsl:value-of and between the others insert a line terminator character:

Code: Select all


Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

Return to “General XML Questions”

Who is online

Users browsing this forum: No registered users and 0 guests