]> granicus.if.org Git - docbook-dsssl/commitdiff
Corrected XPath expression used for finding date data within *info
authorMichael Smith <xmldoc@users.sourceforge.net>
Thu, 10 Aug 2006 22:38:12 +0000 (22:38 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Thu, 10 Aug 2006 22:38:12 +0000 (22:38 +0000)
content -- such that dbtimestamp PIs are now correctly processed
when they occur within refentry *info content.

xsl/common/refentry.xsl

index 73752bbedd0dcb5f034a5f0b442556166b31f953..5e8e7f3e5426d14b33dd3340077b34881cb4f16b 100644 (file)
         <!-- * in *info -->
         <xsl:choose>
           <!-- * look for date or pubdate in *info -->
-          <xsl:when test="$info/date
-                          |$info/pubdate">
-            <xsl:value-of
+          <xsl:when test="$info/date/node()
+                          |$info/pubdate/node()">
+            <xsl:apply-templates
                 select="(($info[date])[last()]/date)[1]|
                         (($info[pubdate])[last()]/pubdate)[1]"/>
           </xsl:when>