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
Date Sun, 12 May 2002 18:40:45 GMT
stevenn     02/05/12 11:40:45

  Modified:    src/documentation/library/xslt faq2document.xsl
               src/documentation/skins/forrest-site/xslt/html
                        document2html.xsl
  Log:
  patched handling of jump element and synced faq2document with document-v11.dtd
  
  Revision  Changes    Path
  1.2       +7 -7      xml-forrest/src/documentation/library/xslt/faq2document.xsl
  
  Index: faq2document.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/documentation/library/xslt/faq2document.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- faq2document.xsl	23 Mar 2002 16:10:42 -0000	1.1
  +++ faq2document.xsl	12 May 2002 18:40:44 -0000	1.2
  @@ -12,21 +12,21 @@
        <title><xsl:value-of select="@title"/></title>
       </header>
       <body>
  -      <s1 title="Questions">
  +      <section title="Questions">
          <ul>
           <xsl:apply-templates select="faq" mode="index"/>
          </ul>
  -      </s1>
  -      <s1 title="Answers">
  +      </section>
  +      <section title="Answers">
           <xsl:apply-templates select="faq"/>
  -      </s1>
  +      </section>
       </body>
      </document>  
     </xsl:template>
   
     <xsl:template match="faq" mode="index">
       <li>
  -      <jump anchor="faq-{position()}">
  +      <jump href="faq-{position()}">
           <xsl:value-of select="question"/>
         </jump>
       </li>
  @@ -34,9 +34,9 @@
   
     <xsl:template match="faq">
       <anchor id="faq-{position()}"/>
  -    <s2 title="{question}">
  +    <section title="{question}">
         <xsl:apply-templates/>
  -    </s2>
  +    </section>
     </xsl:template>
   
     <xsl:template match="question">
  
  
  
  1.4       +8 -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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- document2html.xsl	12 May 2002 07:41:55 -0000	1.3
  +++ document2html.xsl	12 May 2002 18:40:45 -0000	1.4
  @@ -77,8 +77,16 @@
       <a href="{@href}"><xsl:apply-templates/></a>
     </xsl:template>
     
  +  <xsl:template match="jump">
  +    <a href="#{@href}"><xsl:apply-templates/></a>
  +  </xsl:template>
  +  
     <xsl:template match="source">
       <pre class="code"><xsl:apply-templates/></pre>
  +  </xsl:template>
  +
  +  <xsl:template match="anchor">
  +    <a name="{@id}"/>
     </xsl:template>
   
     <xsl:template match="icon">
  
  
  

Mime
View raw message