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

Figure Problem using XSL-FO

Subject: Figure Problem using XSL-FO
From: "Byomkesh" <bkesh@xxxxxxxxxxxxxxx>
Date: Mon, 16 Oct 2006 18:44:44 +0530
figure problem
Hi,

I have one problem. I am creating XML to PDF. I want ignore second
imageobject (graphics/fg01_00300_alt.jpg) tag. I have tried many option
but not success.
 
My XML File

<figure>
<title>Web browser.</title>
<imageobject>
<imagedata fileref="graphics/fg01_00300.jpg" format="JPG" width="500"
depth="176"/>
</imageobject>
<!-- I want Ignore this image call -->
<imageobject>
<imagedata fileref="graphics/fg01_00300_alt.jpg" format="JPG"
width="800" depth="281"/>
</imageobject>
<!-- -->
</figure>
<para>Some text here</para>
<figure>
<title>Browser.</title>
<imageobject>
<imagedata fileref="graphics/fg01_00301.jpg" format="JPG" width="500"
depth="176"/>
</imageobject>
<imageobject>
<imagedata fileref="graphics/fg01_00301_alt.jpg" format="JPG"
width="1100" depth="281"/>
</imageobject>
</figure>

My XSL :---

    <xsl:template match="figure">
    <fo:block line-height="1.5"
xsl:use-attribute-sets="formal.object.properties" text-align="center">

<xsl:for-each
select=".//imagedata[@format='GIF']|.//imagedata[@format='JPG']">
        <fo:external-graphic src="@fileref">
            <xsl:attribute name="src">
                <xsl:apply-templates select="@fileref" />
            </xsl:attribute>
        </fo:external-graphic>
</xsl:for-each>
</fo:block>
    <fo:block xsl:use-attribute-sets="formal.object.properties"
text-align="justify" font-size="8pt">
            <xsl:if test="@label">
    <fo:inline font-weight="bold" font-size="8pt">

FIGURE    
<xsl:value-of select="@label" />
</fo:inline>
            </xsl:if>
<xsl:call-template name="space"/>
           <xsl:apply-templates select="title" />
        </fo:block>
    </xsl:template>

Please anyone help me, how ignore second imageobject tag

Thanks and Regards

 

Byomokesh


-- 

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.4/476 - Release Date:
10/14/2006

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.