]> granicus.if.org Git - docbook-dsssl/commitdiff
Use pubdate instead of bibliocoverage (what was I thinking?). Fixed pubdate.
authorNorman Walsh <ndw@nwalsh.com>
Wed, 26 Oct 2005 13:30:49 +0000 (13:30 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Wed, 26 Oct 2005 13:30:49 +0000 (13:30 +0000)
docbook/relaxng/docbook/howto/howto.xml
docbook/relaxng/docbook/howto/stylesheets/fo.xsl
docbook/relaxng/docbook/howto/stylesheets/html.xsl

index 5338fd920d732033d28024fd0dd37eeca01b2df9..6aa85302a8375fa52038c260ff764e010a0d4633 100644 (file)
@@ -13,8 +13,7 @@
         <email>ndw@nwalsh.com</email></author>
 </authorgroup>
 
-<bibliocoverage temporal="w3c-dtf">2005-10-24</bibliocoverage>
-<bibliocoverage temporal="w3c-dtf">2005-10-21</bibliocoverage>
+<pubdate>2005-10-26</pubdate>
 
 </info>
 
index 83a2a7bbb652eefc62b81923e3c2bcd601fe7727..2042a228f87d8e43b959ab257c93371defbf6830 100644 (file)
 <xsl:template match="info" mode="howto-titlepage">
   <xsl:apply-templates select="title" mode="howto-titlepage"/>
   <xsl:apply-templates select="subtitle" mode="howto-titlepage"/>
-  <xsl:apply-templates select="bibliocoverage[@temporal][1]"
-                      mode="howto-titlepage"/>
-  <xsl:apply-templates select="bibliocoverage[@temporal][1]"
-                      mode="version-list"/>
+  <xsl:apply-templates select="pubdate[1]" mode="howto-titlepage"/>
+  <xsl:apply-templates select="pubdate[1]" mode="version-list"/>
   <xsl:apply-templates select="authorgroup" mode="howto-titlepage"/>
 </xsl:template>
 
@@ -42,7 +40,7 @@
   </fo:block>
 </xsl:template>
 
-<xsl:template match="bibliocoverage[@temporal]" mode="howto-titlepage">
+<xsl:template match="pubdate" mode="howto-titlepage">
   <fo:block font-size="16pt" font-weight="bold" margin-bottom="15pt"
            font-family="sans-serif">
     <xsl:call-template name="datetime.format">
@@ -52,7 +50,7 @@
   </fo:block>
 </xsl:template>
 
-<xsl:template match="bibliocoverage[1]" priority="10"
+<xsl:template match="pubdate[1]" priority="10"
              mode="version-list">
   <fo:block font-size="12pt" font-family="sans-serif">This version:</fo:block>
 
     <fo:inline>http://docbook.org/docs/howto/</fo:inline>
   </fo:block>
 
-  <xsl:if test="following-sibling::bibliocoverage[@temporal]">
+  <xsl:if test="following-sibling::pubdate">
     <fo:block font-size="12pt" font-family="sans-serif">
       <xsl:text>Previous version</xsl:text>
-      <xsl:if test="count(following-sibling::bibliocoverage[@temporal]) &gt; 1">
+      <xsl:if test="count(following-sibling::pubdate) &gt; 1">
        <xsl:text>s</xsl:text>
       </xsl:if>
       <xsl:text>:</xsl:text>
     </fo:block>
     <xsl:apply-templates
-       select="following-sibling::bibliocoverage[@temporal]"
+       select="following-sibling::pubdate"
        mode="version-list"/>
   </xsl:if>
 </xsl:template>
 
-<xsl:template match="bibliocoverage" mode="version-list">
-  <xsl:if test="count(preceding-sibling::bibliocoverage[@temporal]) &lt; 4">
+<xsl:template match="pubdate" mode="version-list">
+  <xsl:if test="count(preceding-sibling::pubdate) &lt; 4">
     <fo:block xsl:use-attribute-sets="urilist">
       <xsl:apply-templates select="." mode="datedURI"/>
     </fo:block>
   </xsl:if>
 </xsl:template>
 
-<xsl:template match="bibliocoverage" mode="datedURI">
+<xsl:template match="pubdate" mode="datedURI">
   <xsl:variable name="uri">
     <xsl:text>http://docbook.org/docs/howto/</xsl:text>
     <xsl:value-of select="substring(.,1,4)"/>
index 0c974b267d76dd8ecc356fe6d87396d7cc17c4fa..63d97007172a65bba64e8c8d6bebb82ebff825f3 100644 (file)
 <xsl:template match="info" mode="howto-titlepage">
   <xsl:apply-templates select="title" mode="howto-titlepage"/>
   <xsl:apply-templates select="subtitle" mode="howto-titlepage"/>
-  <xsl:apply-templates select="bibliocoverage[@temporal][1]"
-                      mode="howto-titlepage"/>
+  <xsl:apply-templates select="pubdate[1]" mode="howto-titlepage"/>
   <div class="metadata">
-    <xsl:apply-templates select="bibliocoverage[@temporal][1]"
-                        mode="version-list"/>
+    <xsl:apply-templates select="pubdate[1]" mode="version-list"/>
     <xsl:apply-templates select="authorgroup" mode="howto-titlepage"/>
   </div>
 </xsl:template>
@@ -42,7 +40,7 @@
   </h2>
 </xsl:template>
 
-<xsl:template match="bibliocoverage[@temporal]" mode="howto-titlepage">
+<xsl:template match="pubdate" mode="howto-titlepage">
   <h3>
     <xsl:call-template name="datetime.format">
       <xsl:with-param name="date" select="."/>
@@ -51,7 +49,7 @@
   </h3>
 </xsl:template>
 
-<xsl:template match="bibliocoverage[1]" priority="10"
+<xsl:template match="pubdate[1]" priority="10"
              mode="version-list">
   <h4>This version:</h4>
   <dl class="urilist">
     </dt>
   </dl>
 
-  <xsl:if test="following-sibling::bibliocoverage[@temporal]">
+  <xsl:if test="following-sibling::pubdate">
     <h4>
       <xsl:text>Previous version</xsl:text>
-      <xsl:if test="count(following-sibling::bibliocoverage[@temporal]) &gt; 1">
+      <xsl:if test="count(following-sibling::pubdate) &gt; 1">
        <xsl:text>s</xsl:text>
       </xsl:if>
       <xsl:text>:</xsl:text>
     </h4>
     <dl class="urilist">
       <xsl:apply-templates
-         select="following-sibling::bibliocoverage[@temporal]"
+         select="following-sibling::pubdate"
          mode="version-list"/>
     </dl>
   </xsl:if>
 </xsl:template>
 
-<xsl:template match="bibliocoverage" mode="version-list">
-  <xsl:if test="count(preceding-sibling::bibliocoverage[@temporal]) &lt; 4">
+<xsl:template match="pubdate" mode="version-list">
+  <xsl:if test="count(preceding-sibling::pubdate) &lt; 4">
     <dt>
       <xsl:apply-templates select="." mode="datedURI"/>
     </dt>
   </xsl:if>
 </xsl:template>
 
-<xsl:template match="bibliocoverage" mode="datedURI">
+<xsl:template match="pubdate" mode="datedURI">
   <xsl:variable name="uri">
     <xsl:text>http://docbook.org/docs/howto/</xsl:text>
     <xsl:value-of select="substring(.,1,4)"/>