You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by bl...@apache.org on 2002/07/19 18:10:04 UTC

cvs commit: jakarta-avalon/src/documentation/skins/krysalis-site/xslt/html book2menu.xsl

bloritsch    2002/07/19 09:10:04

  Modified:    src/documentation sitemap.xmap
               src/documentation/skins/alt-avalon-site/xslt/html
                        book2menu.xsl
               src/documentation/skins/avalon-site/xslt/html book2menu.xsl
               src/documentation/skins/avalon-tigris/xslt/html
                        book2menu.xsl
               src/documentation/skins/basic/xslt/html book2menu.xsl
               src/documentation/skins/krysalis-site/xslt/html
                        book2menu.xsl
  Log:
  update stylesheets to use menu.xml instead of book.xml
  
  Revision  Changes    Path
  1.17      +6 -6      jakarta-avalon/src/documentation/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon/src/documentation/sitemap.xmap,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- sitemap.xmap	13 Jul 2002 16:33:15 -0000	1.16
  +++ sitemap.xmap	19 Jul 2002 16:10:04 -0000	1.17
  @@ -133,7 +133,7 @@
   -->
      
      <map:match pattern="**book-**.xml">
  -     <map:generate src="content/xdocs/{1}book.xml"/>
  +     <map:generate src="content/xdocs/{1}menu.xml"/>
        <map:call resource="skinit">
         <map:parameter name="type" value="book2menu"/>
        </map:call>         
  @@ -176,12 +176,12 @@
      </map:match>
      
      <!-- Generate the "doclist" - list of all documentation
  -     The first match generates each book.xml and adds a new attribute "uri".
  -     The second match aggregates each book.xml into a doclist and
  +     The first match generates each menu.xml and adds a new attribute "uri".
  +     The second match aggregates each menu.xml into a doclist and
        then converts it to a document.
      -->
  -   <map:match pattern="doclist/content/xdocs/**book.xml">
  -     <map:generate src="content/xdocs/{1}book.xml"/>
  +   <map:match pattern="doclist/content/xdocs/**menu.xml">
  +     <map:generate src="content/xdocs/{1}menu.xml"/>
        <map:transform src="library/xslt/doclist.xsl">
          <map:parameter name="uri" value="{1}"/>
        </map:transform>
  @@ -190,7 +190,7 @@
      
      <map:match pattern="body-doclist.xml">
        <map:aggregate element="doclist">
  -       <map:part src="cocoon:/doclist/content/xdocs/book.xml"/>
  +       <map:part src="cocoon:/doclist/content/xdocs/menu.xml"/>
        </map:aggregate>
        <map:transform src="library/xslt/doclist2document.xsl"/>
        <map:call resource="skinit">
  
  
  
  1.2       +8 -20     jakarta-avalon/src/documentation/skins/alt-avalon-site/xslt/html/book2menu.xsl
  
  Index: book2menu.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon/src/documentation/skins/alt-avalon-site/xslt/html/book2menu.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- book2menu.xsl	12 Jul 2002 18:41:57 -0000	1.1
  +++ book2menu.xsl	19 Jul 2002 16:10:04 -0000	1.2
  @@ -5,49 +5,37 @@
   
     <xsl:param name="resource"/>
   
  -  <xsl:template match="book">
  +  <xsl:template match="project">
       <menu>
         <xsl:apply-templates/>
       </menu>
     </xsl:template>
   
  -  <xsl:template match="project">
  -  </xsl:template>
  -<!--
  -  <xsl:template match="menu[position()=1]">
  +  <xsl:template match="body">
       <xsl:apply-templates/>
     </xsl:template>
  --->
  +  
  +
     <xsl:template match="menu">
       <div id="submenu">
  -      <h4><xsl:value-of select="@label"/></h4>
  +      <h4><xsl:value-of select="@name"/></h4>
          <ul>      
           <xsl:apply-templates/>
         </ul>     
       </div>     
     </xsl:template>
   
  -  <xsl:template match="menu-item">
  -   <xsl:if test="not(@type) or @type!='hidden'">
  +  <xsl:template match="item">
       <li> 
          <xsl:choose>
            <xsl:when test="@href=$resource">
  -          <xsl:value-of select="@label"/>
  +          <xsl:value-of select="@name"/>
            </xsl:when>
            <xsl:otherwise>
  -          <a href="{@href}"><xsl:value-of select="@label"/></a>
  +          <a href="{@href}"><xsl:value-of select="@name"/></a>
           </xsl:otherwise>
          </xsl:choose>
        </li>  
  -   </xsl:if>
  -  </xsl:template>
  -
  -  <xsl:template match="external">
  -    <xsl:if test="not(@type) or @type!='hidden'">
  -     <li>
  -      <a href="{@href}"><xsl:value-of select="@label"/></a>
  -     </li> 
  -    </xsl:if>
     </xsl:template>
   
     <xsl:template match="node()|@*" priority="-1"/>
  
  
  
  1.2       +7 -20     jakarta-avalon/src/documentation/skins/avalon-site/xslt/html/book2menu.xsl
  
  Index: book2menu.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon/src/documentation/skins/avalon-site/xslt/html/book2menu.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- book2menu.xsl	30 May 2002 16:23:42 -0000	1.1
  +++ book2menu.xsl	19 Jul 2002 16:10:04 -0000	1.2
  @@ -5,49 +5,36 @@
   
     <xsl:param name="resource"/>
   
  -  <xsl:template match="book">
  +  <xsl:template match="project">
       <menu>
         <xsl:apply-templates/>
       </menu>
     </xsl:template>
   
  -  <xsl:template match="project">
  -  </xsl:template>
  -<!--
  -  <xsl:template match="menu[position()=1]">
  +  <xsl:template match="body">
       <xsl:apply-templates/>
     </xsl:template>
  --->
  +  
     <xsl:template match="menu">
       <div id="submenu">
  -      <h4><xsl:value-of select="@label"/></h4>
  +      <h4><xsl:value-of select="@name"/></h4>
          <ul>      
           <xsl:apply-templates/>
         </ul>     
       </div>     
     </xsl:template>
   
  -  <xsl:template match="menu-item">
  -   <xsl:if test="not(@type) or @type!='hidden'">
  +  <xsl:template match="item">
       <li> 
          <xsl:choose>
            <xsl:when test="@href=$resource">
  -          <xsl:value-of select="@label"/>
  +          <xsl:value-of select="@name"/>
            </xsl:when>
            <xsl:otherwise>
  -          <a href="{@href}"><xsl:value-of select="@label"/></a>
  +          <a href="{@href}"><xsl:value-of select="@name"/></a>
           </xsl:otherwise>
          </xsl:choose>
        </li>  
  -   </xsl:if>
  -  </xsl:template>
  -
  -  <xsl:template match="external">
  -    <xsl:if test="not(@type) or @type!='hidden'">
  -     <li>
  -      <a href="{@href}"><xsl:value-of select="@label"/></a>
  -     </li> 
  -    </xsl:if>
     </xsl:template>
   
     <xsl:template match="node()|@*" priority="-1"/>
  
  
  
  1.3       +8 -23     jakarta-avalon/src/documentation/skins/avalon-tigris/xslt/html/book2menu.xsl
  
  Index: book2menu.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon/src/documentation/skins/avalon-tigris/xslt/html/book2menu.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- book2menu.xsl	14 Jul 2002 11:26:42 -0000	1.2
  +++ book2menu.xsl	19 Jul 2002 16:10:04 -0000	1.3
  @@ -5,49 +5,34 @@
   
     <xsl:param name="resource"/>
   
  -  <xsl:template match="book">
  +  <xsl:template match="project">
        <menu>
          <xsl:apply-templates/>
        </menu>
     </xsl:template>
   
  -  <xsl:template match="project">
  -  </xsl:template>
  -
  -<!--  <xsl:templaatch="menu[position()=1]">
  -    <xsl:apply-templates/>
  -  </xsl:template>te match="menu[position()=1]">
  +  <xsl:template match="body">
       <xsl:apply-templates/>
  -  </xsl:template>-->
  -
  +  </xsl:template>
  +  
     <xsl:template match="menu">
        <div>
  -      <strong><xsl:value-of select="@label"/></strong>
  +      <strong><xsl:value-of select="@name"/></strong>
          <xsl:apply-templates/>
        </div>
     </xsl:template>
   
  -  <xsl:template match="menu-item">
  -    <xsl:if test="not(@type) or @type!='hidden'">
  +  <xsl:template match="item">
        <div><!--<small>-->
          <xsl:choose>
            <xsl:when test="@href=$resource">
  -          <xsl:value-of select="@label"/>
  +          <xsl:value-of select="@name"/>
            </xsl:when>
            <xsl:otherwise>
  -          <a href="{@href}"><xsl:value-of select="@label"/></a>
  +          <a href="{@href}"><xsl:value-of select="@name"/></a>
           </xsl:otherwise>
          </xsl:choose>
          <!--</small>--></div>
  -     </xsl:if>
  -  </xsl:template>
  -
  -  <xsl:template match="external">
  -     <xsl:if test="not(@type) or @type!='hidden'">
  -     <div><small>
  -      <a href="{@href}"><xsl:value-of select="@label"/></a>
  -      </small></div>
  -    </xsl:if>
     </xsl:template>
   
     <xsl:template match="node()|@*" priority="-1"/>
  
  
  
  1.2       +7 -18     jakarta-avalon/src/documentation/skins/basic/xslt/html/book2menu.xsl
  
  Index: book2menu.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon/src/documentation/skins/basic/xslt/html/book2menu.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- book2menu.xsl	30 May 2002 16:26:15 -0000	1.1
  +++ book2menu.xsl	19 Jul 2002 16:10:04 -0000	1.2
  @@ -5,41 +5,30 @@
   
     <xsl:param name="resource"/>
   
  -  <xsl:template match="book">
  +  <xsl:template match="project">
       <menu>
         <xsl:apply-templates/>
       </menu>
     </xsl:template>
   
  -  <xsl:template match="project">
  -  </xsl:template>
  -
  -  <xsl:template match="menu[position()=1]">
  +  <xsl:template match="body">
       <xsl:apply-templates/>
     </xsl:template>
  -
  +  
     <xsl:template match="menu">
  -     <br/><b><xsl:value-of select="@label"/></b>&#160;;
  +     <br/><b><xsl:value-of select="@name"/></b>&#160;;
        <xsl:apply-templates/>
     </xsl:template>
   
  -  <xsl:template match="menu-item">-&#160;
  -    <xsl:if test="not(@type) or @type!='hidden'">
  +  <xsl:template match="item">-&#160;
          <xsl:choose>
            <xsl:when test="@href=$resource">
  -          <xsl:value-of select="@label"/>
  +          <xsl:value-of select="@name"/>
            </xsl:when>
            <xsl:otherwise>
  -          <a href="{@href}"><xsl:value-of select="@label"/></a>
  +          <a href="{@href}"><xsl:value-of select="@name"/></a>
           </xsl:otherwise>
          </xsl:choose>
  -     </xsl:if>&#160;
  -  </xsl:template>
  -
  -  <xsl:template match="external">
  -    <xsl:if test="not(@type) or @type!='hidden'">&#160;-
  -      <a href="{@href}"><xsl:value-of select="@label"/></a>&#160;;
  -    </xsl:if>
     </xsl:template>
   
     <xsl:template match="node()|@*" priority="-1"/>
  
  
  
  1.2       +7 -20     jakarta-avalon/src/documentation/skins/krysalis-site/xslt/html/book2menu.xsl
  
  Index: book2menu.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon/src/documentation/skins/krysalis-site/xslt/html/book2menu.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- book2menu.xsl	12 Jul 2002 15:02:50 -0000	1.1
  +++ book2menu.xsl	19 Jul 2002 16:10:04 -0000	1.2
  @@ -5,49 +5,36 @@
   
     <xsl:param name="resource"/>
   
  -  <xsl:template match="book">
  +  <xsl:template match="project">
       <menu>
         <xsl:apply-templates/>
       </menu>
     </xsl:template>
   
  -  <xsl:template match="project">
  -  </xsl:template>
  -<!--
  -  <xsl:template match="menu[position()=1]">
  +  <xsl:template match="body">
       <xsl:apply-templates/>
     </xsl:template>
  --->
  +  
     <xsl:template match="menu">
       <div id="submenu">
  -      <h4><xsl:value-of select="@label"/></h4>
  +      <h4><xsl:value-of select="@name"/></h4>
          <ul>      
           <xsl:apply-templates/>
         </ul>     
       </div>     
     </xsl:template>
   
  -  <xsl:template match="menu-item">
  -   <xsl:if test="not(@type) or @type!='hidden'">
  +  <xsl:template match="item">
       <li> 
          <xsl:choose>
            <xsl:when test="@href=$resource">
  -          <xsl:value-of select="@label"/>
  +          <xsl:value-of select="@name"/>
            </xsl:when>
            <xsl:otherwise>
  -          <a href="{@href}"><xsl:value-of select="@label"/></a>
  +          <a href="{@href}"><xsl:value-of select="@name"/></a>
           </xsl:otherwise>
          </xsl:choose>
        </li>  
  -   </xsl:if>
  -  </xsl:template>
  -
  -  <xsl:template match="external">
  -    <xsl:if test="not(@type) or @type!='hidden'">
  -     <li>
  -      <a href="{@href}"><xsl:value-of select="@label"/></a>
  -     </li> 
  -    </xsl:if>
     </xsl:template>
   
     <xsl:template match="node()|@*" priority="-1"/>
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>