forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stev...@apache.org
Subject cvs commit: xml-forrest/src/documentation/skins/forrest-site/xslt/html document2html.xsl site2xhtml.xsl
Date Tue, 21 May 2002 12:23:30 GMT
stevenn     02/05/21 05:23:30

  Modified:    src/documentation/skins/forrest-site/xslt/html
                        document2html.xsl site2xhtml.xsl
  Log:
  added both @id and generate-id() based anchoring of sections and made sure we have decent
page titles in the rendered HTML again
  
  Revision  Changes    Path
  1.8       +13 -0     xml-forrest/src/documentation/skins/forrest-site/xslt/html/document2html.xsl
  
  Index: document2html.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/documentation/skins/forrest-site/xslt/html/document2html.xsl,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- document2html.xsl	16 May 2002 22:32:41 -0000	1.7
  +++ document2html.xsl	21 May 2002 12:23:30 -0000	1.8
  @@ -72,9 +72,19 @@
       </xsl:if>
       <xsl:apply-templates/>
     </xsl:template>
  +  
  +  <!--  section handling
  +        - <a name/> anchors are added if the id attribute is specified
  +        - generated anchors are still included for the TOC - what should we do about this?
  +        - FIXME: provide a generic facility to process section irrelevant to their 
  +          nesting depth
  +  -->
   
     <xsl:template match="section">
       <a name="{generate-id()}"/>
  +    <xsl:if test="normalize-space(@id)!=''">
  +      <a name="{@id}"/>
  +    </xsl:if>
       <h3>
         <xsl:value-of select="@title"/>
       </h3>
  @@ -83,6 +93,9 @@
   
     <xsl:template match="section/section">
       <a name="{generate-id()}"/>
  +    <xsl:if test="normalize-space(@id)!=''">
  +      <a name="{@id}"/>
  +    </xsl:if>
       <h4>
         <xsl:value-of select="@title"/>
       </h4>
  
  
  
  1.6       +1 -1      xml-forrest/src/documentation/skins/forrest-site/xslt/html/site2xhtml.xsl
  
  Index: site2xhtml.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/documentation/skins/forrest-site/xslt/html/site2xhtml.xsl,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- site2xhtml.xsl	20 May 2002 22:09:48 -0000	1.5
  +++ site2xhtml.xsl	21 May 2002 12:23:30 -0000	1.6
  @@ -6,7 +6,7 @@
       <html>
         <head>
           <title>
  -          <xsl:value-of select="td/table/tr/td/h2"/>
  +          <xsl:value-of select="td[@class='content']/h2"/>
           </title>
           <link rel="stylesheet" href="skin/page.css" type="text/css"/>
         </head>
  
  
  

Mime
View raw message