[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: how can i get a sub-tree(between two chapter)
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|