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"><GRAPHICS
DISABLED!></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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]