]> granicus.if.org Git - docbook-dsssl/commitdiff
Initial support for bibliolist
authorNorman Walsh <ndw@nwalsh.com>
Thu, 8 Jan 2004 13:35:15 +0000 (13:35 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 8 Jan 2004 13:35:15 +0000 (13:35 +0000)
xsl/fo/biblio.xsl
xsl/html/biblio.xsl

index 046e2bfed5d859584f9aa4590d4fe80683da31f2..c190647fd6c051722c0b8af8eebee6c9a2fd87da 100644 (file)
 
 <!-- ==================================================================== -->
 
+<xsl:template match="bibliolist">
+  <xsl:variable name="id">
+    <xsl:call-template name="object.id"/>
+  </xsl:variable>
+
+  <fo:block id="{$id}"
+           space-before.minimum="1em"
+           space-before.optimum="1.5em"
+           space-before.maximum="2em">
+
+    <xsl:if test="blockinfo/title|title">
+      <xsl:call-template name="formal.object.heading"/>
+    </xsl:if>
+
+    <xsl:apply-templates select="*[not(self::blockinfo)
+                                  and not(self::title)
+                                  and not(self::titleabbrev)]"/>
+  </fo:block>
+</xsl:template>
+
+<!-- ==================================================================== -->
+
 <xsl:template match="biblioentry">
   <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
   <xsl:choose>
index 58a207046f06987e2da7616d605fddaaa080a29f..93af1256366b93fd7e6e20a33d00df67847d78f0 100644 (file)
 
 <!-- ==================================================================== -->
 
+<xsl:template match="bibliolist">
+  <div class="{name(.)}">
+    <xsl:call-template name="anchor"/>
+    <xsl:if test="blockinfo/title|title">
+      <xsl:call-template name="formal.object.heading"/>
+    </xsl:if>
+    <xsl:apply-templates select="*[not(self::blockinfo)
+                                  and not(self::title)
+                                  and not(self::titleabbrev)
+                                  and not(self::biblioentry)
+                                  and not(self::bibliomixed)]"/>
+    <dl>
+      <xsl:apply-templates select="biblioentry|bibliomixed"/>
+    </dl>
+  </div>
+</xsl:template>
+
+<!-- ==================================================================== -->
+
 <xsl:template match="biblioentry">
   <xsl:variable name="id">
     <xsl:call-template name="object.id"/>