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 22:37:19 GMT
stevenn     02/05/12 15:37:19

  Modified:    src/documentation sitemap.xmap
               src/documentation/content/xdocs index.xml
               src/documentation/skins/forrest-site/css page.css
               src/documentation/skins/forrest-site/xslt/html
                        document2html.xsl
  Log:
  added a minitoc for documents containing sections, tweaked the sitemap accordingly
  
  Revision  Changes    Path
  1.6       +4 -1      xml-forrest/src/documentation/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/documentation/sitemap.xmap,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- sitemap.xmap	12 May 2002 07:36:26 -0000	1.5
  +++ sitemap.xmap	12 May 2002 22:37:19 -0000	1.6
  @@ -79,7 +79,9 @@
   
    <map:resources>
     <map:resource name="skinit">
  -   <map:transform src="skins/forrest-site/xslt/html/{type}.xsl"/>
  +   <map:transform src="skins/forrest-site/xslt/html/{type}.xsl">
  +     <map:parameter name="isfaq" value="{isfaq}"/>
  +   </map:transform>
      <map:serialize/>
     </map:resource>
     
  @@ -152,6 +154,7 @@
        <map:transform src="library/xslt/faq2document.xsl" label="content"/>
        <map:call resource="skinit">
         <map:parameter name="type" value="document2html"/>
  +      <map:parameter name="isfaq" value="true"/>
        </map:call>    
      </map:match>
   
  
  
  
  1.4       +30 -28    xml-forrest/src/documentation/content/xdocs/index.xml
  
  Index: index.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/documentation/content/xdocs/index.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- index.xml	12 May 2002 07:38:21 -0000	1.3
  +++ index.xml	12 May 2002 22:37:19 -0000	1.4
  @@ -1,35 +1,37 @@
   <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN" "document-v11.dtd">
  -<document>
  -  <header>
  -    <title>Welcome to Forrest</title>
  -    <authors>
  -      <person name="Steven Noels" email="stevenn@apache.org" id="SN"/>
  -    </authors>
  -  </header>
  -  <body>
  -    <s1 title="Introduction">
  +<document> 
  +  <header> 
  +    <title>Welcome to Forrest</title> 
  +    <authors> <person name="Steven Noels" email="stevenn@apache.org" id="SN"/>

  +    </authors> 
  +  </header> 
  +  <body> 
  +    <section title="Introduction"> 
         <p>Forrest provides a sound technological infrastructure for open
  -       software development for the Apache Software Foundation based on ASF
  -       software, ASF practices and experience, and modern software design
  -       principles.
  -      </p>
  -
  -      <p>The Forrest developers - 
  -       <link href="mailto:forrest-dev@xml.apache.org">forrest-dev@xml.apache.org</link>
  -      </p>
  -    </s1>
  -
  -    <s1 title="Project Status">
  +        software development for the Apache Software Foundation based on ASF software,
  +        ASF practices and experience, and modern software design principles.</p>

  +      <p>Our first target is to create a consistent
  +        <link href="http://xml.apache.org/">xml.apache.org</link> website,
with a
  +      uniform, light-weigth and easy to navigate layout and structure. Each project
  +      will be responsible for maintaining its own documentation and website, which
  +      are imported, aggregated and published automatically by Forrest. To achieve
  +      this goal, we provide XML document grammars for the different types of
  +      documents a project's website typically consists of, and a
  +      <link href="http://xml.apache.org/cocoon/">Cocoon</link>-based site generation
  +      mechanism.</p> 
  +      <p>The Forrest developers -
  +        <link
  +      href="mailto:forrest-dev@xml.apache.org">forrest-dev@xml.apache.org</link></p>

  +    </section> 
  +    <section title="Project Status"> 
         <p>The Forrest project is new and needs your help to get started. Please
  -       see the <link href="faq.html">FAQ</link> and
  -       join the discussion on
  -       <link href="mailto:forrest-dev@xml.apache.org">forrest-dev@xml.apache.org</link>
  -      </p>
  -
  +        see the <link href="faq.html">FAQ</link> and join the discussion on
  +      <link
  +      href="mailto:forrest-dev@xml.apache.org">forrest-dev@xml.apache.org</link>.</p>
  +      
         <p>There is also a fledgling <link href="dreams.html">Dream List</link>
  -       to help provide some direction.
  -      </p>
  -    </s1>
  +      to help provide some direction.</p> 
  +    </section> 
     </body>
   </document>
  
  
  
  1.2       +2 -0      xml-forrest/src/documentation/skins/forrest-site/css/page.css
  
  Index: page.css
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/documentation/skins/forrest-site/css/page.css,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- page.css	9 Apr 2002 22:37:47 -0000	1.1
  +++ page.css	12 May 2002 22:37:19 -0000	1.2
  @@ -69,3 +69,5 @@
   .icon {}
   
   .highlight { background-color: yellow; }
  +
  +.minitoc {font-size: 8pt; margin: 5px 5px 5px 40px;}
  \ No newline at end of file
  
  
  
  1.5       +21 -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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- document2html.xsl	12 May 2002 18:40:45 -0000	1.4
  +++ document2html.xsl	12 May 2002 22:37:19 -0000	1.5
  @@ -1,6 +1,8 @@
   <?xml version="1.0"?>
   <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   
  +  <xsl:param name="isfaq"/>
  +
     <xsl:template match="document">
       <td colspan="2" valign="top" class="content">
         <table>
  @@ -40,10 +42,29 @@
     </xsl:template>
   
     <xsl:template match="body">
  +    <xsl:if test="section and not($isfaq='true')">
  +      <ul class="minitoc">
  +        <xsl:for-each select="section">
  +          <li>
  +            <a href="#{generate-id()}"><xsl:value-of select="@title"/></a>
  +            <xsl:if test="section">
  +              <ul class="minitoc">
  +                <xsl:for-each select="section">
  +                  <li>
  +                    <a href="#{generate-id()}"><xsl:value-of select="@title"/></a>
  +                  </li>
  +                </xsl:for-each>
  +              </ul>
  +            </xsl:if>
  +          </li>
  +        </xsl:for-each>
  +      </ul>
  +    </xsl:if>
       <xsl:apply-templates/>
     </xsl:template>
   
     <xsl:template match="section">
  +    <a name="{generate-id()}"/>
       <h3>
         <xsl:value-of select="@title"/>
       </h3>
  
  
  

Mime
View raw message