| 
 
Subject: [xsl] Extract footnotes  From: "J. S. Rawat" <jrawat@xxxxxxxxxxxxxx> Date: Sat, 03 Nov 2007 12:24:37 +0530  | 
Required Output <level> <para>111....222 .... </para> <para>333... ...</para> <footnote label="1" id="f1"><para>First fnt</para></footnote> <footnote label="2" id="f2"><para>second fnt</para></footnote> <footnote label="3" id="f3"><para>Third fnt</para></footnote> </level>
<xsl:template match="section"> <level> <xsl:apply-templates/> <xsl:if test="descendant::*[self::footnote]"> <xsl:apply-templates select="descendant::*[self::section//footnote]"/> </xsl:if> </level> </xsl:template>
<xsl:template match="para"> <xsl:copy> <xsl:apply-templates select="descendant::*[not(self::footnote)]"/> </xsl:copy> </xsl:template>
thanks ...JSR
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| RE: [xsl] first question to the lis, Michael Kay | Thread | Re: [xsl] Extract footnotes, G. Ken Holman | 
| RE: [xsl] first question to the lis, Jared Stein | Date | RE: [xsl] first question to the lis, Michael Kay | 
| Month |