[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] Figure Move
Subject: Re: [xsl] Figure Move From: Mukul Gandhi <gandhi.mukul@xxxxxxxxx> Date: Wed, 3 Mar 2010 11:16:20 +0530 |
I would suggest a solution something like below: <xsl:template match="node() | @*"> <xsl:copy> <xsl:apply-templates select="node() | @*" /> </xsl:copy> </xsl:template> <xsl:template match="p[preceding-sibling::p//Intref]" /> <xsl:template match="fig"> <xsl:copy-of select="." /> <xsl:copy-of select="//p[preceding-sibling::p//Intref]" /> </xsl:template> This uses, the identity template modification pattern. On Wed, Mar 3, 2010 at 10:50 AM, Byomokesh Sahoo <sahoo.byomokesh@xxxxxxxxx> wrote: > Hi, > > I find some difficulties figure move to end of the paragraph which is > figure linked inside the paragraph text. Some cases after one or two > paragraph figure text is appear. > > Example --> > > Input = > ====== > > <p>paragraph text <Intref id="fig1">Figure 1</intref></p> > <p>paragraph test</> > <fig> > <caption>some text</caption> > <img file="1.jpg"/> > </fig> > > Required Output > =============== > > <p>paragraph text <Intref id="fig1">Figure 1</intref></p> > <fig> > <caption>some text</caption> > <img file="1.jpg"/> > </fig> > <p>paragraph test</> > > > Please anyone suggest how i will do this > > Thanks > Byomokesh -- Regards, Mukul Gandhi
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Figure Move, Byomokesh Sahoo | Thread | RE: [xsl] Figure Move, Ramesh, Marimuthu |
[xsl] Pattern Substring, Senthilukvelaan | Date | RE: [xsl] Figure Move, Ramesh, Marimuthu |
Month |