xsl-list
[Top] [All Lists]

Re: dividing a structure into fractions

2005-07-06 08:56:17





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

--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>