]> granicus.if.org Git - docbook-dsssl/commitdiff
Support bibliosource; improve numbered bibliography entries and cross-references...
authorNorman Walsh <ndw@nwalsh.com>
Sat, 16 Nov 2002 21:03:40 +0000 (21:03 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sat, 16 Nov 2002 21:03:40 +0000 (21:03 +0000)
xsl/fo/biblio.xsl
xsl/fo/xref.xsl
xsl/html/biblio.xsl
xsl/html/xref.xsl

index 89aae9b98fe06dfa12dd020dfefe8c8c5b8c20e0..fa4930f1bae6617ae40c4af9d357823158224f5c 100644 (file)
   <xsl:choose>
     <xsl:when test="$bibliography.numbered != 0">
       <xsl:text>[</xsl:text>
-      <xsl:number from="bibliography" count="biblioentry|bibliomixed" format="1"/>
+      <xsl:number from="bibliography" count="biblioentry|bibliomixed"
+                  level="any" format="1"/>
       <xsl:text>] </xsl:text>
     </xsl:when>
     <xsl:when test="local-name($node/child::*[1]) = 'abbrev'">
 
 <!-- ==================================================================== -->
 
+<xsl:template match="bibliosource">
+  <!-- FIXME: is this right? -->
+  <xsl:apply-templates/>
+</xsl:template>
+
+<!-- ==================================================================== -->
+
 </xsl:stylesheet>
index 8941e3ed8c1138f9380a7ab17ef300c8d76e8d87..740ab47289bdbdd6d26551436204be10d88286e6 100644 (file)
       <xsl:choose>
         <xsl:when test="$entry">
           <xsl:choose>
+            <xsl:when test="$bibliography.numbered != 0">
+              <xsl:number from="bibliography" count="biblioentry|bibliomixed"
+                          level="any" format="1"/>
+            </xsl:when>
             <xsl:when test="local-name($entry/*[1]) = 'abbrev'">
               <xsl:apply-templates select="$entry/*[1]"/>
             </xsl:when>
     </xsl:when>
     <xsl:otherwise>
       <xsl:choose>
+        <xsl:when test="$bibliography.numbered != 0">
+          <xsl:number from="bibliography" count="biblioentry|bibliomixed"
+                      level="any" format="1"/>
+        </xsl:when>
         <xsl:when test="local-name(*[1]) = 'abbrev'">
           <xsl:apply-templates select="*[1]"/>
         </xsl:when>
index ecf466dffb4bc027abcb010d7d340ba0f61524d2..358a0c15f43ac374bf42c7de01a63fd12f4d03cc 100644 (file)
   <xsl:choose>
     <xsl:when test="$bibliography.numbered != 0">
       <xsl:text>[</xsl:text>
-      <xsl:number from="bibliography" count="biblioentry|bibliomixed" format="1"/>
+      <xsl:number from="bibliography" count="biblioentry|bibliomixed"
+                  level="any" format="1"/>
       <xsl:text>] </xsl:text>
     </xsl:when>
     <xsl:when test="local-name($node/child::*[1]) = 'abbrev'">
 
 <!-- ==================================================================== -->
 
+<xsl:template match="bibliosource">
+  <!-- FIXME: is this right? -->
+  <xsl:apply-templates/>
+</xsl:template>
+
+<!-- ==================================================================== -->
+
 </xsl:stylesheet>
index 52ea184c581a6626db9936181bc70c71affa9e81..7292da7379aa3b3264a7f84bd965a8ef00fb1652 100644 (file)
       <xsl:choose>
         <xsl:when test="$entry">
           <xsl:choose>
+            <xsl:when test="$bibliography.numbered != 0">
+              <xsl:number from="bibliography" count="biblioentry|bibliomixed"
+                          level="any" format="1"/>
+            </xsl:when>
             <xsl:when test="local-name($entry/*[1]) = 'abbrev'">
               <xsl:apply-templates select="$entry/*[1]"/>
             </xsl:when>
     </xsl:when>
     <xsl:otherwise>
       <xsl:choose>
+        <xsl:when test="$bibliography.numbered != 0">
+          <xsl:number from="bibliography" count="biblioentry|bibliomixed"
+                      level="any" format="1"/>
+        </xsl:when>
         <xsl:when test="local-name(*[1]) = 'abbrev'">
           <xsl:apply-templates select="*[1]"/>
         </xsl:when>