]> granicus.if.org Git - docbook-dsssl/commitdiff
Use function-available to select callout extension function
authorNorman Walsh <ndw@nwalsh.com>
Sat, 6 Oct 2001 19:44:21 +0000 (19:44 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sat, 6 Oct 2001 19:44:21 +0000 (19:44 +0000)
xsl/html/callout.xsl

index c591a9e5ba0daecea41abb61edd43463967120eb..431e2588f01f7010682b7487e60708d6f3aecd8f 100644 (file)
@@ -21,7 +21,6 @@
 
 <xsl:template match="programlistingco|screenco">
   <xsl:variable name="verbatim" select="programlisting|screen"/>
-  <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
 
   <xsl:choose>
     <xsl:when test="$use.extensions != '0'
 
       <xsl:variable name="rtf-with-callouts">
         <xsl:choose>
-          <xsl:when test="contains($vendor, 'SAXON ')">
+          <xsl:when test="function-available('sverb:insertCallouts')">
             <xsl:copy-of select="sverb:insertCallouts(areaspec,$rtf)"/>
           </xsl:when>
-          <xsl:when test="contains($vendor, 'Apache Software Foundation')">
+          <xsl:when test="function-available('xverb:insertCallouts')">
             <xsl:copy-of select="xverb:insertCallouts(areaspec,$rtf)"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:message terminate="yes">
-              <xsl:text>Don't know how to do callouts with </xsl:text>
-              <xsl:value-of select="$vendor"/>
+              <xsl:text>No insertCallouts function is available.</xsl:text>
             </xsl:message>
           </xsl:otherwise>
         </xsl:choose>