]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug #442160. Parameter graphic.default.extension is now used also for <graphic...
authorJirka Kosek <jirka@kosek.cz>
Tue, 17 Jul 2001 21:21:17 +0000 (21:21 +0000)
committerJirka Kosek <jirka@kosek.cz>
Tue, 17 Jul 2001 21:21:17 +0000 (21:21 +0000)
xsl/common/common.xsl
xsl/html/graphics.xsl

index a844dacd976cce9682b4958b5c0fdce97305ae7a..ba52ea17eb0e7a821fc6a1ee9bc1c36b1d01f5f4 100644 (file)
@@ -854,7 +854,8 @@ object is recognized as a graphic.</para>
 
   <xsl:variable name="data" select="$object/videodata
                                     |$object/imagedata
-                                    |$object/audiodata"/>
+                                    |$object/audiodata
+                                    |$object"/>
 
   <xsl:variable name="filename">
     <xsl:choose>
index c767326c6a9952c2cb7252d3efeb1956a2773cc8..b3c0c1b61aa7d6a323672aa7ab51462e85236b9a 100644 (file)
     <xsl:choose>
       <xsl:when test="local-name(.) = 'graphic'
                       or local-name(.) = 'inlinegraphic'">
-        <xsl:choose>
-          <xsl:when test="@fileref">
-            <xsl:value-of select="@fileref"/>
-          </xsl:when>
-          <xsl:when test="@entityref">
-            <xsl:value-of select="unparsed-entity-uri(@entityref)"/>
-          </xsl:when>
-          <xsl:otherwise>
-            <xsl:message>
-              <xsl:text>A fileref or entityref is required on </xsl:text>
-              <xsl:value-of select="local-name(.)"/>
-            </xsl:message>
-          </xsl:otherwise>
-        </xsl:choose>
+        <!-- handle legacy graphic and inlinegraphic by new template --> 
+        <xsl:call-template name="mediaobject.filename">
+          <xsl:with-param name="object" select="."/>
+        </xsl:call-template>
       </xsl:when>
       <xsl:otherwise>
         <!-- imagedata, videodata, audiodata -->