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[(_at_)format='GIF']|.//imagedata[(_at_)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
--~------------------------------------------------------------------
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>
--~--