db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fuzzylo...@apache.org
Subject svn commit: r434003 - in /db/derby/docs/trunk/lib: dita2fo-shell.xsl fo2html.xsl
Date Wed, 23 Aug 2006 10:17:53 GMT
Author: fuzzylogic
Date: Wed Aug 23 03:17:50 2006
New Revision: 434003

URL: http://svn.apache.org/viewvc?rev=434003&view=rev
Log:
DERBY-753: Fix the HTML Book Table of Contents.

Modified:
    db/derby/docs/trunk/lib/dita2fo-shell.xsl
    db/derby/docs/trunk/lib/fo2html.xsl

Modified: db/derby/docs/trunk/lib/dita2fo-shell.xsl
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/lib/dita2fo-shell.xsl?rev=434003&r1=434002&r2=434003&view=diff
==============================================================================
--- db/derby/docs/trunk/lib/dita2fo-shell.xsl (original)
+++ db/derby/docs/trunk/lib/dita2fo-shell.xsl Wed Aug 23 03:17:50 2006
@@ -387,7 +387,7 @@
        
   </fo:inline>
         <fo:leader leader-pattern="dots"/>
-                <fo:page-number-citation ref-id="{generate-id()}"/>
+                <fo:page-number-citation ref-id="{generate-id(@id)}"/>
     </fo:basic-link>  
 </fo:block>
       <xsl:call-template name="get-tce2-section"/>
@@ -402,7 +402,7 @@
           <xsl:value-of select="*[contains(@class,' topic/title ')]"/>
         </fo:inline>
         <fo:leader leader-pattern="dots"/>
-        <fo:page-number-citation ref-id="{generate-id()}"/>
+        <fo:page-number-citation ref-id="{generate-id(@id)}"/>
         </fo:basic-link>  
  </fo:block>
       <xsl:call-template name="get-tce3-section"/>
@@ -415,7 +415,7 @@
 <fo:basic-link internal-destination="{string(@id)}">
         <xsl:value-of select="*[contains(@class,' topic/title ')]"/>
         <fo:leader leader-pattern="dots"/>
-        <fo:page-number-citation ref-id="{generate-id()}"/>
+        <fo:page-number-citation ref-id="{generate-id(@id)}"/>
            </fo:basic-link>  
    </fo:block>
       <xsl:call-template name="get-tce4-section"/>

Modified: db/derby/docs/trunk/lib/fo2html.xsl
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/lib/fo2html.xsl?rev=434003&r1=434002&r2=434003&view=diff
==============================================================================
--- db/derby/docs/trunk/lib/fo2html.xsl (original)
+++ db/derby/docs/trunk/lib/fo2html.xsl Wed Aug 23 03:17:50 2006
@@ -324,7 +324,10 @@
 </xsl:template>
 
 <xsl:template match="fo:basic-link[@internal-destination]">
-  &anchor;<a href="#{@internal-destination}">&add-style;<xsl:apply-templates/></a>
+
+  <xsl:variable name="citation-id" select="fo:page-number-citation/@ref-id"/>
+
+  &anchor;<a href="#{$citation-id}">&add-style;<xsl:apply-templates/></a>
 </xsl:template>
 
 



Mime
View raw message