Subject: RE: [xsl] Xalan bug? From: "Arun Sinha" <arunsinha666@xxxxxxxxxxx> Date: Thu, 02 Dec 2004 10:46:08 +0000 |
Hello, I was solving a problem posted by a user at microsoft.public.xsl newsgroup. I seem to have been hit by a Xalan bug(Xalan-J 2.6.0), which I wish to
I think that was a complex solution. Try this one.
<xsl:template match="/Parent"> <xsl:apply-templates select="node" /> </xsl:template>
<xsl:template match="node"> <xsl:if test="position() mod $group-size = 1 or $group-size = 1"> <xsl:text>Group :-</xsl:text> </xsl:if> <xsl:value-of select="." /> <xsl:if test="position() mod $group-size != 0 and position() != last()"> <xsl:text>, </xsl:text> </xsl:if> <xsl:if test="position() mod $group-size = 0"> <br /> </xsl:if> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Xalan bug?, Mukul Gandhi | Thread | RE: [xsl] Xalan bug?, Mukul Gandhi |
RE: [xsl] Complex for-each comparis, Jarno.Elovirta | Date | Re: [xsl] Complex for-each comparis, Sven Waibel |
Month |