Subject: Re: [xsl] dividing a structure into fractions From: omprakash.v@xxxxxxxxxxxxx Date: Wed, 6 Jul 2005 21:26:17 +0530 |
Hi, Please take this xsl. <xsl:for-each select="units/*[starts-with(name(), 'unit_')][position() mod 3 = 1]"> <part> <xsl:apply-templates select="."/> </part> </xsl:for-each> </xsl:template> <xsl:template match="units/*[position() mod 3= 0]" priority="2.5"> <xsl:copy/> </xsl:template> <xsl:template match="units/*"> <xsl:copy/> <xsl:apply-templates select="following-sibling::*[starts-with(name(), 'unit_')][1]"/> </xsl:template> Cheers, prakash This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited. Visit Us at http://www.polaris.co.in
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] dividing a structure into, David Carlisle | Thread | [xsl] CRLF in xslt in Firefox and I, Manfred Staudinger |
Re: [xsl] dividing a structure into, Gavin Montague | Date | [xsl] CRLF in xslt in Firefox and I, Manfred Staudinger |
Month |