[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Figure Move

Subject: RE: Figure Move
From: "Ramesh, Marimuthu" <M.Ramesh@xxxxxxxxxxx>
Date: Wed, 3 Mar 2010 11:17:00 +0530
RE:  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.byomokesh@xxxxxxxxx]
Sent: Wednesday, March 03, 2010 10:50 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.