Author: manuel
Date: 2007-04-22 04:56:30 -0600 (Sun, 22 Apr 2007)
New Revision: 8096

Modified:
   branches/new-xsl/blfs-pdf.xsl
   branches/new-xsl/pdf/lfs-mixed.xsl
   branches/new-xsl/xhtml/lfs-mixed.xsl
Log:
Fixed corss-references to <seg> tags.

Modified: branches/new-xsl/blfs-pdf.xsl
===================================================================
--- branches/new-xsl/blfs-pdf.xsl       2007-04-21 22:32:53 UTC (rev 8095)
+++ branches/new-xsl/blfs-pdf.xsl       2007-04-22 10:56:30 UTC (rev 8096)
@@ -9,7 +9,7 @@
                 xmlns:fo="http://www.w3.org/1999/XSL/Format";
                 version="1.0">
 
-    <!-- LFS top-level chunk templates. -->
+    <!-- LFS top-level pdf templates. -->
   <xsl:import href="lfs-pdf.xsl"/>
 
     <!-- The LFS book type to be processed (lfs, blfs, clfs, or hlfs) -->

Modified: branches/new-xsl/pdf/lfs-mixed.xsl
===================================================================
--- branches/new-xsl/pdf/lfs-mixed.xsl  2007-04-21 22:32:53 UTC (rev 8095)
+++ branches/new-xsl/pdf/lfs-mixed.xsl  2007-04-22 10:56:30 UTC (rev 8096)
@@ -98,6 +98,7 @@
           <xsl:when test="$keep.together != ''">
             <xsl:value-of select="$keep.together"/>
           </xsl:when>
+          <xsl:when test="$book-type = 'blfs'">auto</xsl:when>
           <xsl:otherwise>always</xsl:otherwise>
         </xsl:choose>
       </xsl:attribute>
@@ -271,7 +272,10 @@
            Adjust vertical space. -->
     <!-- The original template is in {docbook-xsl}/fo/list.xsl -->
   <xsl:template match="segmentedlist">
-    <fo:list-block provisional-distance-between-starts="12em"
+    <xsl:variable name="id">
+      <xsl:call-template name="object.id"/>
+    </xsl:variable>
+    <fo:list-block id="{$id}" provisional-distance-between-starts="12em"
                    provisional-label-separation="1em"
                    keep-together.within-column="always">
       <xsl:choose>
@@ -302,6 +306,9 @@
            found in {docbook-xsl}/fo/list.xsl
            Making segmentedlist an actual FO list to can indent items. -->
   <xsl:template match="seglistitem/seg">
+    <xsl:variable name="id">
+      <xsl:call-template name="object.id"/>
+    </xsl:variable>
     <xsl:variable name="segnum" select="count(preceding-sibling::seg)+1"/>
     <xsl:variable name="seglist" select="ancestor::segmentedlist"/>
     <xsl:variable name="segtitles" select="$seglist/segtitle"/>
@@ -316,7 +323,7 @@
         </fo:block>
       </fo:list-item-label>
       <fo:list-item-body start-indent="body-start()">
-        <fo:block>
+        <fo:block id="{$id}">
           <xsl:apply-templates/>
         </fo:block>
       </fo:list-item-body>

Modified: branches/new-xsl/xhtml/lfs-mixed.xsl
===================================================================
--- branches/new-xsl/xhtml/lfs-mixed.xsl        2007-04-21 22:32:53 UTC (rev 
8095)
+++ branches/new-xsl/xhtml/lfs-mixed.xsl        2007-04-22 10:56:30 UTC (rev 
8096)
@@ -99,6 +99,9 @@
         </span>
       </strong>
       <span class="segbody">
+        <xsl:if test="@id">
+          <a id="[EMAIL PROTECTED]" name="[EMAIL PROTECTED]"/>
+        </xsl:if>
         <xsl:apply-templates/>
       </span>
     </div>

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to