forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject cvs commit: xml-forrest/src/resources/skins/bert/xslt/html tab2menu.xsl
Date Fri, 07 Jun 2002 01:44:00 GMT
crossley    2002/06/06 18:44:00

  Modified:    src/documentation/content/xdocs tabs.xml
               src/resources/schema catalog
               src/resources/schema/dtd howto-v10.dtd tab-cocoon-v10.dtd
               src/resources/skins/bert/xslt/html tab2menu.xsl
  Log:
  Fix dos2unix on some new files.
  
  Revision  Changes    Path
  1.2       +13 -13    xml-forrest/src/documentation/content/xdocs/tabs.xml
  
  Index: tabs.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/documentation/content/xdocs/tabs.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- tabs.xml	6 Jun 2002 22:20:43 -0000	1.1
  +++ tabs.xml	7 Jun 2002 01:43:59 -0000	1.2
  @@ -1,13 +1,13 @@
  -<?xml version="1.0" encoding="UTF-8"?>
  -<!DOCTYPE book PUBLIC "-//APACHE//DTD Cocoon Documentation Tab V1.0//EN" "tab-cocoon-v10.dtd">
  -
  -<tabs software="Forrest"
  -    title="Apache Forrest"
  -    copyright="@year@ The Apache Foundation"
  -    xmlns:xlink="http://www.w3.org/1999/xlink">
  -
  -  <tab label="Home" dir=""/>
  -  <tab label="How-Tos" dir="community/howto/"/>
  -  <tab label="XML Site" dir="xml-site/"/>
  -
  -</tabs>
  \ No newline at end of file
  +<?xml version="1.0" encoding="UTF-8"?>
  +<!DOCTYPE book PUBLIC "-//APACHE//DTD Cocoon Documentation Tab V1.0//EN" "tab-cocoon-v10.dtd">
  +
  +<tabs software="Forrest"
  +    title="Apache Forrest"
  +    copyright="@year@ The Apache Foundation"
  +    xmlns:xlink="http://www.w3.org/1999/xlink">
  +
  +  <tab label="Home" dir=""/>
  +  <tab label="How-Tos" dir="community/howto/"/>
  +  <tab label="XML Site" dir="xml-site/"/>
  +
  +</tabs>
  
  
  
  1.4       +1 -1      xml-forrest/src/resources/schema/catalog
  
  Index: catalog
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/schema/catalog,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- catalog	6 Jun 2002 22:24:53 -0000	1.3
  +++ catalog	7 Jun 2002 01:43:59 -0000	1.4
  @@ -43,4 +43,4 @@
          "entity/ISOlat1.pen"
   
   PUBLIC "-//Outerthought//DTD Libre Configuration V0.1//EN"
  -       "dtd/libre-v01.dtd"
  \ No newline at end of file
  +       "dtd/libre-v01.dtd"
  
  
  
  1.3       +105 -105  xml-forrest/src/resources/schema/dtd/howto-v10.dtd
  
  Index: howto-v10.dtd
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/schema/dtd/howto-v10.dtd,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- howto-v10.dtd	25 May 2002 07:24:19 -0000	1.2
  +++ howto-v10.dtd	7 Jun 2002 01:44:00 -0000	1.3
  @@ -1,105 +1,105 @@
  -<!-- ===================================================================
  -
  -     Apache How-To DTD (Version 1.0)
  -
  -PURPOSE:
  -  This DTD was developed to create a simple yet powerful document
  -  type for software How-Tos for use with the Apache projects.
  -  It is an XML-compliant DTD and is maintained by the Apache XML project.
  -
  -TYPICAL INVOCATION:
  -
  -  <!DOCTYPE document PUBLIC
  -       "-//APACHE//DTD How-To Vx.y//EN"
  -       "howto-vxy.dtd">
  -
  -  where
  -
  -    x := major version
  -    y := minor version
  -
  -NOTES:
  -  How-Tos help software users accomplish a specific task with clear
  -  and consise instructions.
  -
  -AUTHORS:
  -  Diana Shannon <shannon@apache.org>
  -
  -FIXME:
  -
  -CHANGE HISTORY:
  -  20020515 Initial version. (DS)
  -  20020521 Added feedback element. (DS)
  -
  -COPYRIGHT:
  -  Copyright (c) @year@ The Apache Software Foundation.
  -
  -  Permission to copy in any form is granted provided this notice is
  -  included in all copies. Permission to redistribute is granted
  -  provided this file is distributed untouched in all its parts and
  -  included files.
  -
  -==================================================================== -->
  -
  -<!-- =============================================================== -->
  -<!-- Local entities -->
  -<!-- =============================================================== -->
  -
  -<!ENTITY % local.headers ", last-modified-content-date">
  -
  -<!-- =============================================================== -->
  -<!-- Include the Documentation DTD -->
  -<!-- =============================================================== -->
  -
  -<!ENTITY % document PUBLIC
  -    "-//APACHE//ENTITIES Documentation V1.1//EN"
  -    "document-v11.mod">
  -%document;
  -
  -<!ENTITY % faq PUBLIC
  -    "-//APACHE//ENTITIES FAQ V1.1//EN"
  -    "faq-v11.mod">
  -%faq;
  -
  -<!-- =============================================================== -->
  -<!-- Document Type Definition -->
  -<!-- =============================================================== -->
  -
  -<!ELEMENT howto (header, audience?, purpose?, prerequisites?, steps,
  -    extension?, faqs?, tips?, references?, feedback? )>
  -<!ATTLIST howto %common.att;>
  -
  -
  -    <!ELEMENT overview (%blocks;)* >
  -    <!ATTLIST overview %title.att; %common.att;>
  -
  -    <!ELEMENT purpose (%blocks;)* >
  -    <!ATTLIST purpose %title.att; %common.att;>
  -
  -    <!ELEMENT prerequisites (section | %blocks;)* >
  -    <!ATTLIST prerequisites %title.att; %common.att;>
  -
  -    <!ELEMENT audience (%blocks;)* >
  -    <!ATTLIST audience %title.att; %common.att;>
  -
  -    <!ELEMENT steps (section | %blocks;)* >
  -    <!ATTLIST steps %title.att; %common.att;>
  -
  -    <!ELEMENT extension (%blocks;)* >
  -    <!ATTLIST extension %title.att; %common.att;>
  -
  -    <!ELEMENT tips (section | %blocks;)* >
  -    <!ATTLIST tips %title.att; %common.att;>
  -
  -    <!ELEMENT references (section | %blocks;)* >
  -    <!ATTLIST references %title.att; %common.att;>
  -
  -    <!ELEMENT feedback (%blocks;)* >
  -    <!ATTLIST feedback %title.att; %common.att;>
  -
  -    <!ELEMENT last-modified-content-date EMPTY >
  -    <!ATTLIST last-modified-content-date date CDATA #REQUIRED>
  -
  -<!-- =============================================================== -->
  -<!-- End of DTD -->
  -<!-- =============================================================== -->
  +<!-- ===================================================================
  +
  +     Apache How-To DTD (Version 1.0)
  +
  +PURPOSE:
  +  This DTD was developed to create a simple yet powerful document
  +  type for software How-Tos for use with the Apache projects.
  +  It is an XML-compliant DTD and is maintained by the Apache XML project.
  +
  +TYPICAL INVOCATION:
  +
  +  <!DOCTYPE document PUBLIC
  +       "-//APACHE//DTD How-To Vx.y//EN"
  +       "howto-vxy.dtd">
  +
  +  where
  +
  +    x := major version
  +    y := minor version
  +
  +NOTES:
  +  How-Tos help software users accomplish a specific task with clear
  +  and consise instructions.
  +
  +AUTHORS:
  +  Diana Shannon <shannon@apache.org>
  +
  +FIXME:
  +
  +CHANGE HISTORY:
  +  20020515 Initial version. (DS)
  +  20020521 Added feedback element. (DS)
  +
  +COPYRIGHT:
  +  Copyright (c) @year@ The Apache Software Foundation.
  +
  +  Permission to copy in any form is granted provided this notice is
  +  included in all copies. Permission to redistribute is granted
  +  provided this file is distributed untouched in all its parts and
  +  included files.
  +
  +==================================================================== -->
  +
  +<!-- =============================================================== -->
  +<!-- Local entities -->
  +<!-- =============================================================== -->
  +
  +<!ENTITY % local.headers ", last-modified-content-date">
  +
  +<!-- =============================================================== -->
  +<!-- Include the Documentation DTD -->
  +<!-- =============================================================== -->
  +
  +<!ENTITY % document PUBLIC
  +    "-//APACHE//ENTITIES Documentation V1.1//EN"
  +    "document-v11.mod">
  +%document;
  +
  +<!ENTITY % faq PUBLIC
  +    "-//APACHE//ENTITIES FAQ V1.1//EN"
  +    "faq-v11.mod">
  +%faq;
  +
  +<!-- =============================================================== -->
  +<!-- Document Type Definition -->
  +<!-- =============================================================== -->
  +
  +<!ELEMENT howto (header, audience?, purpose?, prerequisites?, steps,
  +    extension?, faqs?, tips?, references?, feedback? )>
  +<!ATTLIST howto %common.att;>
  +
  +
  +    <!ELEMENT overview (%blocks;)* >
  +    <!ATTLIST overview %title.att; %common.att;>
  +
  +    <!ELEMENT purpose (%blocks;)* >
  +    <!ATTLIST purpose %title.att; %common.att;>
  +
  +    <!ELEMENT prerequisites (section | %blocks;)* >
  +    <!ATTLIST prerequisites %title.att; %common.att;>
  +
  +    <!ELEMENT audience (%blocks;)* >
  +    <!ATTLIST audience %title.att; %common.att;>
  +
  +    <!ELEMENT steps (section | %blocks;)* >
  +    <!ATTLIST steps %title.att; %common.att;>
  +
  +    <!ELEMENT extension (%blocks;)* >
  +    <!ATTLIST extension %title.att; %common.att;>
  +
  +    <!ELEMENT tips (section | %blocks;)* >
  +    <!ATTLIST tips %title.att; %common.att;>
  +
  +    <!ELEMENT references (section | %blocks;)* >
  +    <!ATTLIST references %title.att; %common.att;>
  +
  +    <!ELEMENT feedback (%blocks;)* >
  +    <!ATTLIST feedback %title.att; %common.att;>
  +
  +    <!ELEMENT last-modified-content-date EMPTY >
  +    <!ATTLIST last-modified-content-date date CDATA #REQUIRED>
  +
  +<!-- =============================================================== -->
  +<!-- End of DTD -->
  +<!-- =============================================================== -->
  
  
  
  1.2       +62 -62    xml-forrest/src/resources/schema/dtd/tab-cocoon-v10.dtd
  
  Index: tab-cocoon-v10.dtd
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/schema/dtd/tab-cocoon-v10.dtd,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- tab-cocoon-v10.dtd	6 Jun 2002 22:20:44 -0000	1.1
  +++ tab-cocoon-v10.dtd	7 Jun 2002 01:44:00 -0000	1.2
  @@ -1,62 +1,62 @@
  -<!-- ===================================================================
  -     
  -     Apache Cocoon Documentation Top DTD (Version 1.0)
  -
  -PURPOSE:
  -This DTD defines the /top.xml documentation configuration files.
  -
  -TYPICAL INVOCATION:
  -
  -  <!DOCTYPE book PUBLIC
  -       "-//APACHE//DTD Cocoon Documentation Book Vx.yz//EN"
  -       "top-cocoon-vxyz.dtd">
  -
  -  where 
  -  
  -    x := major version
  -    y := minor version
  -    z := status identifier (optional)
  -      
  -NOTES:
  -We need to replace this DTD with the proper one.
  -We are only using this DTD to enable validation during "build docs"
  -because every XML instance must declare its ruleset.
  -
  -This initial minimal DTD has been reverse-engineered from the structure
  -of the current documents, e.g. 
  - documentation/xdocs/book.xml
  -  
  -AUTHORS:
  -  Bert Van Kets <bert@vankets.com>
  -  
  -FIXME:
  -  - find the proper DTD for top.xml
  -
  -CHANGE HISTORY:
  -  20020506 Initial version. (BVK)
  -    
  -COPYRIGHT:
  -  Copyright (c) @year@ The Apache Software Foundation.
  -  
  -  Permission to copy in any form is granted provided this notice is 
  -  included in all copies. Permission to redistribute is granted 
  -  provided this file is distributed untouched in all its parts and 
  -  included files.
  -  
  -==================================================================== -->
  -<!ELEMENT tabs (tab)*>
  -<!ELEMENT tab EMPTY>
  -<!ATTLIST tabs
  -  software CDATA #REQUIRED
  -  title CDATA #REQUIRED
  -  copyright CDATA #REQUIRED
  -  xmlns:xlink CDATA #IMPLIED
  ->
  -<!ATTLIST tab
  -  label CDATA #REQUIRED
  -  dir CDATA #REQUIRED
  -  type (visible | hidden) "visible"
  ->
  -<!-- =============================================================== -->
  -<!-- End of DTD -->
  -<!-- =============================================================== -->
  +<!-- ===================================================================
  +     
  +     Apache Cocoon Documentation Top DTD (Version 1.0)
  +
  +PURPOSE:
  +This DTD defines the /top.xml documentation configuration files.
  +
  +TYPICAL INVOCATION:
  +
  +  <!DOCTYPE book PUBLIC
  +       "-//APACHE//DTD Cocoon Documentation Book Vx.yz//EN"
  +       "top-cocoon-vxyz.dtd">
  +
  +  where 
  +  
  +    x := major version
  +    y := minor version
  +    z := status identifier (optional)
  +      
  +NOTES:
  +We need to replace this DTD with the proper one.
  +We are only using this DTD to enable validation during "build docs"
  +because every XML instance must declare its ruleset.
  +
  +This initial minimal DTD has been reverse-engineered from the structure
  +of the current documents, e.g. 
  + documentation/xdocs/book.xml
  +  
  +AUTHORS:
  +  Bert Van Kets <bert@vankets.com>
  +  
  +FIXME:
  +  - find the proper DTD for top.xml
  +
  +CHANGE HISTORY:
  +  20020506 Initial version. (BVK)
  +    
  +COPYRIGHT:
  +  Copyright (c) @year@ The Apache Software Foundation.
  +  
  +  Permission to copy in any form is granted provided this notice is 
  +  included in all copies. Permission to redistribute is granted 
  +  provided this file is distributed untouched in all its parts and 
  +  included files.
  +  
  +==================================================================== -->
  +<!ELEMENT tabs (tab)*>
  +<!ELEMENT tab EMPTY>
  +<!ATTLIST tabs
  +  software CDATA #REQUIRED
  +  title CDATA #REQUIRED
  +  copyright CDATA #REQUIRED
  +  xmlns:xlink CDATA #IMPLIED
  +>
  +<!ATTLIST tab
  +  label CDATA #REQUIRED
  +  dir CDATA #REQUIRED
  +  type (visible | hidden) "visible"
  +>
  +<!-- =============================================================== -->
  +<!-- End of DTD -->
  +<!-- =============================================================== -->
  
  
  
  1.2       +69 -69    xml-forrest/src/resources/skins/bert/xslt/html/tab2menu.xsl
  
  Index: tab2menu.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/bert/xslt/html/tab2menu.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- tab2menu.xsl	6 Jun 2002 22:20:44 -0000	1.1
  +++ tab2menu.xsl	7 Jun 2002 01:44:00 -0000	1.2
  @@ -1,69 +1,69 @@
  -<?xml version="1.0"?>
  -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  -  <xsl:param name="resource"/>
  -  
  -  <xsl:template name="spacer">
  -    <td width="8">
  -      <img src="skin/images/spacer.gif" width="8" height="8" alt=""/>
  -    </td>
  -  </xsl:template>
  -  
  -  <xsl:template name="not-selected">
  -      <td valign="bottom">
  -        <table cellspacing="0" cellpadding="0" border="0" height="25" summary="non selected
tab">
  -          <tr>
  -            <td bgcolor="#B2C4E0" width="5" valign="top"><img src="skin/images/tab-left.gif"
alt="" width="5" height="5" /></td>
  -            <td bgcolor="#B2C4E0" valign="middle">
  -              <a href="/xml-forrest/{@dir}"><font face="Arial, Helvetica, Sans-serif"
size="2"><xsl:value-of select="@label"/></font></a>
  -            </td>
  -            <td bgcolor="#B2C4E0" width="5" valign="top"><img src="skin/images/tab-right.gif"
alt="" width="5" height="5" />
  -            </td>
  -          </tr>
  -        </table>
  -      </td>
  -  </xsl:template>
  -  
  -  <xsl:template name="selected">
  -      <td valign="bottom">
  -        <table cellspacing="0" cellpadding="0" border="0" height="30" summary="selected
tab">
  -          <tr>
  -            <td bgcolor="#4C6C8F" width="5" valign="top"><img src="skin/images/tabSel-left.gif"
alt="" width="5" height="5" /></td>
  -            <td bgcolor="#4C6C8F" valign="middle">
  -              <font face="Arial, Helvetica, Sans-serif" size="2" color="#ffffff"><b><xsl:value-of
select="@label"/></b></font>
  -            </td>
  -            <td bgcolor="#4C6C8F" width="5" valign="top"><img src="skin/images/tabSel-right.gif"
alt="" width="5" height="5" /></td>
  -          </tr>
  -        </table>
  -      </td>
  -  </xsl:template>
  -  
  -  <xsl:template match="tabs">
  -    <div class="tab">
  -      <table cellspacing="0" cellpadding="0" border="0" summary="tab bar">
  -        <tr>
  -          <xsl:apply-templates/>
  -        </tr>
  -      </table>
  -    </div>
  -  </xsl:template>
  -  
  -  <xsl:template match="tab">
  -    <xsl:call-template name="spacer"/>
  -    <xsl:choose>
  -      <xsl:when test="$resource!='' and @dir=''">
  -        <xsl:call-template name="not-selected"/>
  -      </xsl:when>
  -      <xsl:otherwise>
  -        <xsl:choose>
  -          <xsl:when test="starts-with($resource,@dir)">
  -           <xsl:call-template name="selected"/>
  -          </xsl:when>
  -          <xsl:otherwise>
  -            <xsl:call-template name="not-selected"/>
  -          </xsl:otherwise>
  -        </xsl:choose>
  -      </xsl:otherwise>
  -    </xsl:choose>
  -  </xsl:template>
  -
  -</xsl:stylesheet>
  \ No newline at end of file
  +<?xml version="1.0"?>
  +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  +  <xsl:param name="resource"/>
  +  
  +  <xsl:template name="spacer">
  +    <td width="8">
  +      <img src="skin/images/spacer.gif" width="8" height="8" alt=""/>
  +    </td>
  +  </xsl:template>
  +  
  +  <xsl:template name="not-selected">
  +      <td valign="bottom">
  +        <table cellspacing="0" cellpadding="0" border="0" height="25" summary="non selected
tab">
  +          <tr>
  +            <td bgcolor="#B2C4E0" width="5" valign="top"><img src="skin/images/tab-left.gif"
alt="" width="5" height="5" /></td>
  +            <td bgcolor="#B2C4E0" valign="middle">
  +              <a href="/xml-forrest/{@dir}"><font face="Arial, Helvetica, Sans-serif"
size="2"><xsl:value-of select="@label"/></font></a>
  +            </td>
  +            <td bgcolor="#B2C4E0" width="5" valign="top"><img src="skin/images/tab-right.gif"
alt="" width="5" height="5" />
  +            </td>
  +          </tr>
  +        </table>
  +      </td>
  +  </xsl:template>
  +  
  +  <xsl:template name="selected">
  +      <td valign="bottom">
  +        <table cellspacing="0" cellpadding="0" border="0" height="30" summary="selected
tab">
  +          <tr>
  +            <td bgcolor="#4C6C8F" width="5" valign="top"><img src="skin/images/tabSel-left.gif"
alt="" width="5" height="5" /></td>
  +            <td bgcolor="#4C6C8F" valign="middle">
  +              <font face="Arial, Helvetica, Sans-serif" size="2" color="#ffffff"><b><xsl:value-of
select="@label"/></b></font>
  +            </td>
  +            <td bgcolor="#4C6C8F" width="5" valign="top"><img src="skin/images/tabSel-right.gif"
alt="" width="5" height="5" /></td>
  +          </tr>
  +        </table>
  +      </td>
  +  </xsl:template>
  +  
  +  <xsl:template match="tabs">
  +    <div class="tab">
  +      <table cellspacing="0" cellpadding="0" border="0" summary="tab bar">
  +        <tr>
  +          <xsl:apply-templates/>
  +        </tr>
  +      </table>
  +    </div>
  +  </xsl:template>
  +  
  +  <xsl:template match="tab">
  +    <xsl:call-template name="spacer"/>
  +    <xsl:choose>
  +      <xsl:when test="$resource!='' and @dir=''">
  +        <xsl:call-template name="not-selected"/>
  +      </xsl:when>
  +      <xsl:otherwise>
  +        <xsl:choose>
  +          <xsl:when test="starts-with($resource,@dir)">
  +           <xsl:call-template name="selected"/>
  +          </xsl:when>
  +          <xsl:otherwise>
  +            <xsl:call-template name="not-selected"/>
  +          </xsl:otherwise>
  +        </xsl:choose>
  +      </xsl:otherwise>
  +    </xsl:choose>
  +  </xsl:template>
  +
  +</xsl:stylesheet>
  
  
  

Mime
View raw message