xsl-list
[Top] [All Lists]

Re: [xsl] recursive loop in XSL stylesheet is failing

2010-03-25 15:59:40
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--