EDN Admin
Well-known member
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>
</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
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>
</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