How do I format xslt address for xml
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 62
- Joined: Thu Jun 26, 2014 9:00 pm
How do I format xslt address for xml
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
<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>
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: How do I format xslt address for xml
Hi,
Before the first xsl:value-of and between the others insert a line terminator character:
Regards,
Adrian
Before the first xsl:value-of and between the others insert a line terminator character:
Code: Select all
<xsl:text>
</xsl:text>
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Return to “General XML Questions”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service