Subject: RE: how can i get a sub-tree(between two chapter)
From: Jarno.Elovirta@xxxxxxxxx
Date: Thu, 26 Jun 2003 11:53:56 +0300
|
Hi,
> and i want to cut the file to parts(each part is limited by
> onther chap) :
<xsl:template match="/">
<xsl:for-each select="//*[starts-with(name(), 'chap')]">
<xsl:copy>
<xsl:apply-templates select="node()[not(self::* and starts-with(name(), 'chap'))]"/>
</xsl:copy>
</xsl:for-each>
</xsl:template>
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
Cheers,
Jarno - Covenant: Call The Ships To Port (Club version)
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|