xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bonekrusher <djs...@yahoo.com>
Subject Re: option to output graphice
Date Fri, 04 Apr 2008 13:56:56 GMT

Hi,

This is what I do. In your Stylesheet you can add a parameter which can be
passed from your app.

e.g

<xsl:param name="output-graphics"/>

Then in your stylesheet graphic template:

                      <xsl:choose>
				<xsl:when test="$output-graphics = 'true'">
							<fo:external-graphic scaling="uniform" content-width="scale-to-fit"
width="50mm">
								<xsl:call-template name="check-updated" />
								<xsl:attribute name="src">
									<xsl:text>file:</xsl:text>
									<xsl:value-of select="@href" />
								</xsl:attribute>
							</fo:external-graphic>
				</xsl:when>
				<xsl:otherwise>
					<fo:inline font-style="italic" font-size="6">&lt;GRAPHICS
DISABLED!&gt;</fo:inline>
				</xsl:otherwise>
			</xsl:choose>


hogie503 wrote:
> 
> Hi,
> 
> I am using the embeded examples in a Netbean IDE to render XML to PDF. is
> there a way to have two check boxes to give me the options to output, or
> do not output  graphics and or foldouts in the PDF.
> 
> Thanks.
> 

-- 
View this message in context: http://www.nabble.com/option-to-output-graphice-tp16467549p16491540.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message