]> granicus.if.org Git - docbook-dsssl/commitdiff
Output id attributes on glossdiv blocks so they can be added to
authorBob Stayton <bobs@sagehill.net>
Sat, 27 Feb 2010 20:42:27 +0000 (20:42 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 27 Feb 2010 20:42:27 +0000 (20:42 +0000)
xrefs or TOC.

xsl/fo/glossary.xsl

index 56411ddd2e83c44d727997e940d47399a6d71380..a317f4e5bd893a9686c923471dd92f17d037c661 100644 (file)
 
   &setup-language-variable;
 
+  <xsl:variable name="id">
+    <xsl:call-template name="object.id"/>
+  </xsl:variable>
+
   <xsl:variable name="preamble"
                 select="*[not(self::title
                             or self::subtitle
                             or self::glossentry)]"/>
 
-  <xsl:call-template name="glossdiv.titlepage"/>
+  <fo:block id="{$id}">
+    <xsl:call-template name="glossdiv.titlepage"/>
+  </fo:block>
 
   <xsl:apply-templates select="$preamble"/>
 
 
   &setup-language-variable;
 
+  <xsl:variable name="id">
+    <xsl:call-template name="object.id"/>
+  </xsl:variable>
+
   <xsl:variable name="preamble"
                 select="*[not(self::title
                             or self::subtitle
                             or self::glossentry)]"/>
 
-  <xsl:call-template name="glossdiv.titlepage"/>
+  <fo:block id="{$id}">
+    <xsl:call-template name="glossdiv.titlepage"/>
+  </fo:block>
 
   <xsl:apply-templates select="$preamble"/>
 
 
   &setup-language-variable;
 
+  <xsl:variable name="id">
+    <xsl:call-template name="object.id"/>
+  </xsl:variable>
+
   <xsl:variable name="entries" select="glossentry"/>
 
   <xsl:variable name="preamble"
                             or self::subtitle
                             or self::glossentry)]"/>
 
-  <xsl:call-template name="glossdiv.titlepage"/>
+  <fo:block id="{$id}">
+    <xsl:call-template name="glossdiv.titlepage"/>
+  </fo:block>
 
   <xsl:apply-templates select="$preamble"/>
 
@@ -913,13 +931,20 @@ GlossEntry ::=
 
 <xsl:template match="glossdiv" mode="glossary.as.blocks">
   &setup-language-variable;
+
+  <xsl:variable name="id">
+    <xsl:call-template name="object.id"/>
+  </xsl:variable>
+
   <xsl:variable name="entries" select="glossentry"/>
   <xsl:variable name="preamble"
                 select="*[not(self::title
                             or self::subtitle
                             or self::glossentry)]"/>
 
-  <xsl:call-template name="glossdiv.titlepage"/>
+  <fo:block id="{$id}">
+    <xsl:call-template name="glossdiv.titlepage"/>
+  </fo:block>
 
   <xsl:apply-templates select="$preamble"/>