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/content/xdocs book.xml
Date Sat, 11 May 2002 22:35:27 GMT
stevenn     02/05/11 15:35:27

  Modified:    src/documentation/skins/forrest-site/xslt/html
                        document2html.xsl
               src/documentation/content/xdocs book.xml
  Log:
  added an example document and tweaked document2html.xsl accordingly
  
  Revision  Changes    Path
  1.2       +50 -3     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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- document2html.xsl	9 Apr 2002 22:37:47 -0000	1.1
  +++ document2html.xsl	11 May 2002 22:35:27 -0000	1.2
  @@ -43,22 +43,69 @@
       <xsl:apply-templates/>
     </xsl:template>
   
  -  <xsl:template match="s1">
  +  <xsl:template match="section">
       <h3>
         <xsl:value-of select="@title"/>
       </h3>
       <xsl:apply-templates/>
     </xsl:template>
   
  -  <xsl:template match="s2">
  +  <xsl:template match="section/section">
       <h4>
         <xsl:value-of select="@title"/>
       </h4>
       <xsl:apply-templates/>
     </xsl:template>
  +  
  +  <xsl:template match="note | warning | fixme">
  +    <div class="frame {local-name()}">
  +      <div class="label">
  +        <xsl:choose>
  +          <xsl:when test="local-name() = 'note'">Note</xsl:when>
  +          <xsl:when test="local-name() = 'warning'">Warning</xsl:when>
  +          <xsl:otherwise>Fixme (<xsl:value-of select="@author"/>)</xsl:otherwise>
  +        </xsl:choose>
  +      </div>
  +      <div class="content"><xsl:apply-templates/></div>
  +    </div>
  +  </xsl:template>
   
  -  <xsl:template match="link">
  +  <xsl:template match="link | jump | fork">
       <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="icon">
  +    <img src="{@src}" alt="{@alt}">
  +      <xsl:if test="@height">
  +        <xsl:attribute name="height"><xsl:value-of select="@height"/></xsl:attribute>
  +      </xsl:if>
  +      <xsl:if test="@width">
  +        <xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute>
  +      </xsl:if>
  +    </img>
  +  </xsl:template>
  +  
  +  <xsl:template match="figure">
  +    <div align="center">
  +      <img src="{@src}" alt="{@alt}" class="figure">
  +        <xsl:if test="@height">
  +          <xsl:attribute name="height"><xsl:value-of select="@height"/></xsl:attribute>
  +        </xsl:if>
  +        <xsl:if test="@width">
  +          <xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute>
  +        </xsl:if>
  +      </img>
  +    </div>
  +  </xsl:template>
  +  
  +  <xsl:template match="table">
  +    <table class="table" cellpadding="4" cellspacing="1">
  +      <xsl:apply-templates/>
  +    </table>
     </xsl:template>
   
     <xsl:template match="node()|@*" priority="-1">
  
  
  
  1.5       +4 -0      xml-forrest/src/documentation/content/xdocs/book.xml
  
  Index: book.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/documentation/content/xdocs/book.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- book.xml	26 Apr 2002 07:49:44 -0000	1.4
  +++ book.xml	11 May 2002 22:35:27 -0000	1.5
  @@ -26,4 +26,8 @@
       <menu-item label="Mail Archives" href="mail-archives.html"/>
     </menu>
   
  +  <menu label="Document Samples">
  +    <menu-item label="document-v11" href="document-v11.html"/>
  +  </menu>
  +
   </book>
  
  
  

Mime
View raw message