[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
There is one tiny little bit that I want to change. On the output the categories start with a colon:
02/10/2010;:George:Illness expenses:Pharmacy;Test Pharmacy, Oakland;-19.1;
How can I remove this leading colon from the list of categories?
I tried the following code without luck:
Re: [xsl] recursive loop in XSL stylesheet is failing
Subject: Re: [xsl] recursive loop in XSL stylesheet is failing From: George <news.net@xxxxxxx> Date: Thu, 25 Mar 2010 21:38:45 +0100 |
There is one tiny little bit that I want to change. On the output the categories start with a colon:
02/10/2010;:George:Illness expenses:Pharmacy;Test Pharmacy, Oakland;-19.1;
How can I remove this leading colon from the list of categories?
I tried the following code without luck:
<xsl:template match="Category"> <xsl:variable name="pid" select="@ParentID"/> <xsl:for-each select="$c"> <xsl:apply-templates select="key('c', $pid)"/> </xsl:for-each> <xsl:variable name="parent" select="en"/> <xsl:if test="string($parent)"> <xsl:value-of select="$parent"/> <xsl:text>:</xsl:text> </xsl:if> </xsl:template>
Thanks in advance, George
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] recursive loop in XSL sty, Robby Pelssers | Thread | Re: [xsl] recursive loop in XSL sty, David Carlisle |
RE: [xsl] recursive loop in XSL sty, Robby Pelssers | Date | Re: [xsl] recursive loop in XSL sty, David Carlisle |
Month |