]> granicus.if.org Git - docbook-dsssl/commitdiff
Tweak available graphics formats
authorNorman Walsh <ndw@nwalsh.com>
Thu, 3 May 2001 21:07:13 +0000 (21:07 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 3 May 2001 21:07:13 +0000 (21:07 +0000)
xsl/fo/graphics.xsl

index a19ef6d3dee93bf0b8010363502af35db59e2baa..b6d05ed3c67d5f560786b02e85af669c376dc1a4 100644 (file)
 <xsl:template match="screeninfo">
 </xsl:template>
 
+<!-- ==================================================================== -->
+<!-- Override these templates for FO -->
+
+<!--
+FIXME: make is.graphic.* work correctly depending on the backend!
+<xsl:param name="passivetex.extensions" select="0" doc:type='boolean'/>
+<xsl:param name="fop.extensions" select="0" doc:type='boolean'/>
+-->
+
+<xsl:template name="is.graphic.format">
+  <xsl:param name="format"></xsl:param>
+  <xsl:if test="$format = 'PNG'
+                or $format = 'PDF'
+                or $format = 'JPG'
+                or $format = 'JPEG'
+                or $format = 'linespecific'
+                or $format = 'GIF'
+                or $format = 'GIF87a'
+                or $format = 'GIF89a'
+                or $format = 'BMP'">1</xsl:if>
+</xsl:template>
+
+<xsl:template name="is.graphic.extension">
+  <xsl:param name="ext"></xsl:param>
+  <xsl:if test="$ext = 'png'
+                or $ext = 'pdf'
+                or $ext = 'jpeg'
+                or $ext = 'jpg'
+                or $ext = 'gif'
+                or $ext = 'bmp'">1</xsl:if>
+</xsl:template>
+
 <!-- ==================================================================== -->
 
 <xsl:template name="process.image">