|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Coma delimited values in attribute
<xsl:template match="Fields">
<table border="1">
<xsl:call-template name="row">
<xsl:with-param name="f1" select="field[1]/@value" />
<xsl:with-param name="f2" select="field[2]/@value" />
<xsl:with-param name="f3" select="field[3]/@value" />
<xsl:with-param name="f4" select="field[4]/@value" />
</xsl:call-template>
</table>
</xsl:template><xsl:template name="row"> <xsl:param name="f1" /> <xsl:param name="f2" /> <xsl:param name="f3" /> <xsl:param name="f4" /> <xsl:if test="not(concat($f1,$f2,$f3,$f4)='')" > <tr> <td><xsl:value-of select="substring-before(concat($f1,','),',')" /></td> <td><xsl:value-of select="substring-before(concat($f2,','),',')" /></td> <td><xsl:value-of select="substring-before(concat($f3,','),',')" /></td> <td><xsl:value-of select="substring-before(concat($f4,','),',')" /></td> </tr> <xsl:call-template name="row"> <xsl:with-param name="f1" select="substring-after($f1,',')" /> <xsl:with-param name="f2" select="substring-after($f2,',')" /> <xsl:with-param name="f3" select="substring-after($f3,',')" /> <xsl:with-param name="f4" select="substring-after($f4,',')" /> </xsl:call-template> </xsl:if> </xsl:template> Belousov Alexey wrote: Hello all. I'm a bit new to XSL and currently having a problem. Any help would be greately apreciated.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








