]> granicus.if.org Git - docbook-dsssl/commitdiff
Replaced useless <a> elements with warning messages (textinsert extension).
authorMauritz Jeanson <mj@johanneberg.com>
Sat, 18 Aug 2007 11:29:53 +0000 (11:29 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Sat, 18 Aug 2007 11:29:53 +0000 (11:29 +0000)
xsl/fo/graphics.xsl

index 4e94fec5c62959d833671a48a6b107a20ff66f97..c2973762aa3eeea401e115b51ef5197c7b54fa1b 100644 (file)
             </xsl:otherwise>
           </xsl:choose>
         </xsl:when>
-        <xsl:otherwise>
-          <a xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"
-             href="{$filename}"/>
+       <xsl:otherwise>
+         <xsl:message terminate="yes">
+           <xsl:text>Cannot insert </xsl:text><xsl:value-of select="$filename"/>
+           <xsl:text>. Check use.extensions and textinsert.extension parameters.</xsl:text> 
+         </xsl:message>
         </xsl:otherwise>
       </xsl:choose>
     </xsl:when>
           </xsl:choose>
         </xsl:when>
         <xsl:otherwise>
-          <a xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"
-             href="{$filename}"/>
-        </xsl:otherwise>
+         <xsl:message terminate="yes">
+           <xsl:text>Cannot insert </xsl:text><xsl:value-of select="$filename"/>
+           <xsl:text>. Check use.extensions and textinsert.extension parameters.</xsl:text> 
+         </xsl:message>
+       </xsl:otherwise>
       </xsl:choose>
     </xsl:when>
     <xsl:otherwise>
 </xsl:template>
 
 <xsl:template match="textdata">
+  <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
   <xsl:variable name="filename">
     <xsl:choose>
       <xsl:when test="@entityref">
         <xsl:when test="element-available('xtext:insertfile')">
           <xtext:insertfile href="{$filename}"/>
         </xsl:when>
-        <xsl:otherwise>
-          <xsl:message terminate="yes">
-            <xsl:text>No insertfile extension available.</xsl:text>
-          </xsl:message>
-        </xsl:otherwise>
+       <xsl:otherwise>
+         <xsl:message terminate="yes">
+           <xsl:text>Don't know how to insert files with </xsl:text>
+           <xsl:value-of select="$vendor"/>
+         </xsl:message>
+       </xsl:otherwise>
       </xsl:choose>
     </xsl:when>
     <xsl:otherwise>
-      <a xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"
-         href="{$filename}"/>
+      <xsl:message terminate="yes">
+       <xsl:text>Cannot insert </xsl:text><xsl:value-of select="$filename"/>
+       <xsl:text>. Check use.extensions and textinsert.extension parameters.</xsl:text> 
+      </xsl:message>
     </xsl:otherwise>
   </xsl:choose>
 </xsl:template>