xsl-list
[Top] [All Lists]

RE: [xsl] Figure Move

2010-03-02 23:52:49
Sorry, ID should be given to <fig> and IDREF to <Intref>.

-----Original Message-----
From: Ramesh, Marimuthu [mailto:M(_dot_)Ramesh(_at_)spi-bpo(_dot_)com] 
Sent: Wednesday, March 03, 2010 11:17 AM
To: sahoo(_dot_)byomokesh(_at_)gmail(_dot_)com
Cc: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Figure Move

Hi Byomokesh,

I think you should give idref attribute in <fig>. By doing this,
querying could be easy.

Anyway try the below code:

<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="p[Intref]">
<xsl:copy-of select="."/>
<xsl:copy-of select="following-sibling::fig[1]"/>
</xsl:template>

<xsl:template match="p">
<xsl:copy-of select="."/>
</xsl:template>

<xsl:template match="fig"/>

Regards,
Rummy


-----Original Message-----
From: Byomokesh Sahoo [mailto:sahoo(_dot_)byomokesh(_at_)gmail(_dot_)com] 
Sent: Wednesday, March 03, 2010 10:50 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Figure Move

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

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


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


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