Subject: [xsl] Figure Problem using XSL-FO From: "Byomkesh" <bkesh@xxxxxxxxxxxxxxx> Date: Mon, 16 Oct 2006 18:44:44 +0530 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Adding a xs:yearMonthDura, Allan Kamau | Thread | Re: [xsl] Figure Problem using XSL-, David Carlisle |
Re: [xsl] Figure Problem using XSL-, David Carlisle | Date | Re: [xsl] Question about table colu, ms |
Month |