]> granicus.if.org Git - docbook-dsssl/commitdiff
Handle revisionflag a little better on copyrights
authorNorman Walsh <ndw@nwalsh.com>
Thu, 14 Mar 2002 18:39:34 +0000 (18:39 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 14 Mar 2002 18:39:34 +0000 (18:39 +0000)
xsl/common/common.xsl
xsl/html/lists.xsl
xsl/html/titlepage.xsl

index 12107070d21ebba322ccbf0254f90b9a05cca2b0..9b13713aab4b369e7b9480c0971dca227bdc0a2f 100644 (file)
@@ -1260,10 +1260,10 @@ year range is <quote>1991-1992</quote> but discretely it's
     <xsl:when test="$print.ranges = 0">
       <xsl:choose>
         <xsl:when test="count($years) = 1">
-          <xsl:value-of select="$years[1]"/>
+          <xsl:apply-templates select="$years[1]" mode="titlepage.mode"/>
         </xsl:when>
         <xsl:otherwise>
-          <xsl:value-of select="$years[1]"/>
+          <xsl:apply-templates select="$years[1]" mode="titlepage.mode"/>
           <xsl:text>, </xsl:text>
           <xsl:call-template name="copyright.years">
             <xsl:with-param name="years"
index 813855a2127fff049658f7085d569a838f5fe9c4..bbdf382c1ff145b1102381da3f4853e55be803e5 100644 (file)
@@ -81,7 +81,7 @@
     </xsl:if>
 
     <xsl:choose>
-      <xsl:when test="$show.revisionflag and @revisionflag">
+      <xsl:when test="$show.revisionflag != 0 and @revisionflag">
        <div class="{@revisionflag}">
          <xsl:apply-templates/>
        </div>
     </xsl:if>
 
     <xsl:choose>
-      <xsl:when test="$show.revisionflag and @revisionflag">
+      <xsl:when test="$show.revisionflag != 0 and @revisionflag">
        <div class="{@revisionflag}">
          <xsl:apply-templates/>
        </div>
 
 <xsl:template match="varlistentry/listitem">
   <xsl:choose>
-    <xsl:when test="$show.revisionflag and @revisionflag">
+    <xsl:when test="$show.revisionflag != 0 and @revisionflag">
       <div class="{@revisionflag}">
        <xsl:apply-templates/>
       </div>
index 862f01a62d2e5828d653769c136068962169a6fd..c3aa9fac47e7e5729deb668bb58a1ae7605f2eef 100644 (file)
 </xsl:template>
 
 <xsl:template match="year" mode="titlepage.mode">
-  <xsl:apply-templates/><xsl:text>, </xsl:text>
-</xsl:template>
-
-<xsl:template match="year[position()=last()]" mode="titlepage.mode">
-  <xsl:apply-templates/>
+  <xsl:choose>
+    <xsl:when test="$show.revisionflag != 0 and @revisionflag">
+      <span class="{@revisionflag}">
+        <xsl:apply-templates mode="titlepage.mode"/>
+      </span>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:apply-templates mode="titlepage.mode"/>
+    </xsl:otherwise>
+  </xsl:choose>
 </xsl:template>
 
 <xsl:template match="holder" mode="titlepage.mode">
-  <xsl:apply-templates/><xsl:text>, </xsl:text>
-</xsl:template>
-
-<xsl:template match="holder[position()=last()]" mode="titlepage.mode">
-  <xsl:apply-templates/>
+  <xsl:choose>
+    <xsl:when test="$show.revisionflag != 0 and @revisionflag">
+      <span class="{@revisionflag}">
+        <xsl:apply-templates mode="titlepage.mode"/>
+      </span>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:apply-templates mode="titlepage.mode"/>
+    </xsl:otherwise>
+  </xsl:choose>
+  <xsl:if test="position() &lt; last()">
+    <xsl:text>, </xsl:text>
+  </xsl:if>
 </xsl:template>
 
 <xsl:template match="corpauthor" mode="titlepage.mode">
   <h1 class="{name(.)}">
     <a name="{$id}"/>
     <xsl:choose>
-      <xsl:when test="$show.revisionflag and @revisionflag">
+      <xsl:when test="$show.revisionflag != 0 and @revisionflag">
        <span class="{@revisionflag}">
          <xsl:apply-templates mode="titlepage.mode"/>
        </span>