]> granicus.if.org Git - docbook-dsssl/commitdiff
Made file extension selection case insensitive, and updated
authorBob Stayton <bobs@sagehill.net>
Wed, 11 Aug 2004 17:14:37 +0000 (17:14 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 11 Aug 2004 17:14:37 +0000 (17:14 +0000)
the list of graphics extensions.

xsl/fo/graphics.xsl

index 8184c65c26e6e9529e01f6d865c93b45b1230ff5..bb6ea8e9707ff00b214cd2e7a201eb07b4ed0df9 100644 (file)
       <xsl:text> png pdf jpg jpeg </xsl:text>
     </xsl:when>
     <xsl:when test="$fop.extensions != 0">
-      <xsl:text> gif svg png pdf jpg jpeg </xsl:text>
+      <xsl:text> bmp gif tif tiff svg png pdf jpg jpeg </xsl:text>
     </xsl:when>
     <xsl:when test="$arbortext.extensions != 0">
       <xsl:text> png pdf jpg jpeg gif tif tiff bmp </xsl:text>
     </xsl:when>
     <xsl:when test="$xep.extensions != 0">
-      <xsl:text> svg png pdf jpg jpeg gif tif tiff bmp </xsl:text>
+      <xsl:text> svg png pdf jpg jpeg gif tif tiff bmp eps </xsl:text>
     </xsl:when>
     <xsl:otherwise>
-      <xsl:text> png pdf jpg jpeg gif tif tiff bmp </xsl:text>
+      <xsl:text> svg png pdf jpg jpeg gif tif tiff bmp eps </xsl:text>
     </xsl:otherwise>
   </xsl:choose>
 </xsl:param>
 
 <xsl:template name="is.graphic.extension">
   <xsl:param name="ext"/>
-  <xsl:if test="contains($graphic.extensions, concat(' ', $ext, ' '))">1</xsl:if>
+  <xsl:variable name="lcext" select="translate($ext,
+                                       'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
+                                       'abcdefghijklmnopqrstuvwxyz')"/>
+
+  <xsl:if test="contains($graphic.extensions,
+                         concat(' ', $lcext, ' '))">1</xsl:if>
 </xsl:template>
 
 <!-- ==================================================================== -->
 
   <xsl:variable name="olist" select="imageobject|imageobjectco
                      |videoobject|audioobject
-                    |textobject"/>
+                     |textobject"/>
 
   <xsl:variable name="object.index">
     <xsl:call-template name="select.mediaobject.index">