Adding new line character in XSLT

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I have a piece of code in XSLT which parses XML and prints the xpaths.
I want to add a new line after each path is travesed and printed.
Below is the last piece of code which concats the attribute values

<xsl:template match="@* <br/>
<xsl:apply-templates select="../ancestor-or-self::*" mode="path"/><br/>
<xsl:value-of select="concat([@,name(), =,$vApos,.,$vApos,])"/><br/>
<xsl:text>&#xA;</xsl:text><br/>
</xsl:template>
after the concat statement,i want to add a new line character so that it inserts a new line after each xpath.
can you please let me know how do i add this.
thanks
sam


View the full article
 
Back
Top