]> granicus.if.org Git - docbook-dsssl/commitdiff
Modified <xsl:when> in datetime.format template to work
authorMauritz Jeanson <mj@johanneberg.com>
Fri, 26 Jan 2007 17:13:59 +0000 (17:13 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Fri, 26 Jan 2007 17:13:59 +0000 (17:13 +0000)
around Xalan bug.

xsl/common/pi.xsl

index 7802934820a4debe5e0d3833a30586c0de1b10cd..4022e8e62810988a23d41e90caf07c2849816718 100644 (file)
     </xsl:variable>
 
   <xsl:choose>
-    <xsl:when test="function-available('exsl:node-set')">
+    <!-- include extra test for Xalan quirk -->
+    <xsl:when test="function-available('exsl:node-set') or 
+                   contains(system-property('xsl:vendor'),'Apache Software Foundation')">
       <!-- We must preserve context node in order to get valid language -->
       <xsl:variable name="context" select="."/>
       <xsl:for-each select="exsl:node-set($tokenized-format-string)/node()">