cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@locus.apache.org
Subject cvs commit: xml-cocoon/skins/xml.apache.org/stylesheets book2project.xsl copyover.xsl document2image.xsl document2project.xsl scan4resources.xsl spec2html.xsl todo2document.xsl changes2document.xsl context2label.xsl directory2project.xsl document2html.xsl faqs2document.xsl any2header.xsl any2project.xsl book2group.xsl context2footer.xsl group2document.xsl
Date Thu, 27 Jan 2000 03:34:37 GMT
stefano     00/01/26 19:34:37

  Modified:    skins/xml.apache.org loader.xml
               skins/xml.apache.org/stylesheets changes2document.xsl
                        context2label.xsl directory2project.xsl
                        document2html.xsl faqs2document.xsl
  Added:       skins/xml.apache.org/stylesheets book2project.xsl
                        copyover.xsl document2image.xsl
                        document2project.xsl scan4resources.xsl
                        spec2html.xsl todo2document.xsl
  Removed:     skins/xml.apache.org book2project.xsl
               skins/xml.apache.org/stylesheets any2header.xsl
                        any2project.xsl book2group.xsl context2footer.xsl
                        group2document.xsl
  Log:
  new Cocoon skin
  
  Revision  Changes    Path
  1.2       +2 -2      xml-cocoon/skins/xml.apache.org/loader.xml
  
  Index: loader.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/skins/xml.apache.org/loader.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- loader.xml	2000/01/23 23:09:24	1.1
  +++ loader.xml	2000/01/27 03:34:35	1.2
  @@ -1,9 +1,9 @@
   <?xml version="1.0"?>
   
  -<!-- CVS $Revision: 1.1 $ $Date: 2000/01/23 23:09:24 $ -->
  +<!-- CVS $Revision: 1.2 $ $Date: 2000/01/27 03:34:35 $ -->
   
   <loader>
     <processor name="xslt">
  -    <parameter name="stylesheet" value="sbk:/style/book2project.xsl"/>
  +    <parameter name="stylesheet" value="sbk:/style/stylesheets/book2project.xsl"/>
     </processor>
   </loader>
  
  
  
  1.2       +40 -37    xml-cocoon/skins/xml.apache.org/stylesheets/changes2document.xsl
  
  Index: changes2document.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/skins/xml.apache.org/stylesheets/changes2document.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- changes2document.xsl	2000/01/23 23:09:25	1.1
  +++ changes2document.xsl	2000/01/27 03:34:36	1.2
  @@ -1,43 +1,46 @@
   <?xml version="1.0"?>
   
  -<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
  +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   
  -  <xsl:template match="/">
  -    <xsl:apply-templates/>
  -  </xsl:template>
  -
  -  <xsl:template match="changes">
  -    <s1 title="{@title}">
  -      <xsl:apply-templates/>
  -    </s1>
  -  </xsl:template>
  -
  -  <xsl:template match="release">
  -    <s2 title="Release {@version} {@date}">
  -      <br/><xsl:apply-templates/>
  -    </s2>
  -  </xsl:template>
  -
  -  <xsl:template match="features">
  -    <s3 title="Features">
  -      <ul><xsl:apply-templates/></ul>
  -    </s3>
  -  </xsl:template>
  + <xsl:import href="copyover.xsl"/>
   
  -  <xsl:template match="fixes">
  -    <s3 title="Bugs fixed">
  -      <ul><xsl:apply-templates/></ul>
  -    </s3>
  -  </xsl:template>
  + <xsl:param name="name"/>
   
  -  <xsl:template match="feat|fix">
  -    <li><xsl:apply-templates/></li>
  -  </xsl:template>
  -
  -  <xsl:template match="@*|node()">
  -    <xsl:copy>
  -      <xsl:apply-templates select="@*|node()"/>
  -    </xsl:copy>
  -  </xsl:template>
  -
  + <xsl:template match="changes">
  +  <document>
  +   <header>
  +    <title><xsl:value-of select="@title"/></title>
  +   </header>
  +   <body>
  +    <xsl:apply-templates/>
  +   </body>
  +  </document>
  + </xsl:template>
  + 
  + <xsl:template match="release">
  +  <s1 title="{$name} {@version} ({@date})">
  +   <sl>
  +    <xsl:apply-templates/>
  +   </sl>
  +  </s1>
  + </xsl:template>
  +
  + <xsl:template match="action">
  +  <li>
  +   <icon src="images/{@type}.jpg" alt="{@type}"/>
  +   <xsl:apply-templates/>
  +   <xsl:text>(</xsl:text><xsl:value-of select="@dev"/><xsl:text>)</xsl:text>
  +   
  +   <xsl:if test="@due-to">
  +    <xsl:text> Thanks to </xsl:text>
  +    <link href="mailto:{@due-to-email}"><xsl:value-of select="@due-to"/></link>
  +    <xsl:text>.</xsl:text>
  +   </xsl:if>
  +  </li>
  + </xsl:template>
  +
  + <xsl:template match="devs">
  +  <!-- remove -->
  + </xsl:template>
  + 
   </xsl:stylesheet>
  
  
  
  1.2       +1 -5      xml-cocoon/skins/xml.apache.org/stylesheets/context2label.xsl
  
  Index: context2label.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/skins/xml.apache.org/stylesheets/context2label.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- context2label.xsl	2000/01/23 23:09:25	1.1
  +++ context2label.xsl	2000/01/27 03:34:36	1.2
  @@ -1,13 +1,9 @@
   <?xml version="1.0"?>
   
  -<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
  +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   
     <xsl:param name="image"/>
     <xsl:param name="color"/>
  -
  -  <xsl:template match="/">
  -    <xsl:apply-templates/>
  -  </xsl:template>
   
     <xsl:template match="context">
       <image source="{$image}">
  
  
  
  1.2       +1 -16     xml-cocoon/skins/xml.apache.org/stylesheets/directory2project.xsl
  
  Index: directory2project.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/skins/xml.apache.org/stylesheets/directory2project.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- directory2project.xsl	2000/01/23 23:09:25	1.1
  +++ directory2project.xsl	2000/01/27 03:34:36	1.2
  @@ -1,13 +1,9 @@
   <?xml version="1.0"?>
   
  -<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
  +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   
     <xsl:param name="base"/>
   
  -  <xsl:template match="/">
  -    <xsl:apply-templates/>
  -  </xsl:template>
  -
     <xsl:template match="directory">
       <project>
         <xsl:apply-templates/>
  @@ -15,20 +11,9 @@
     </xsl:template>
   
     <xsl:template match="entry">
  -
       <xsl:if test="@directory!='true'">
         <resource source="{@href}" target="{$base}{@href}"/>
       </xsl:if>
  -<!-- don't copy subdir to avoid copying proprietary CVS files
  -    <xsl:if test="@directory='true'">
  -      <process source="{@href}" producer="directory">
  -        <processor name="xslt">
  -          <parameter name="stylesheet" value="sbk:/style/stylesheets/directory2project.xsl"/>
  -          <parameter name="base" value="{$base}{@href}"/>
  -        </processor>
  -      </process>
  -    </xsl:if>
  --->    
     </xsl:template>
   
   </xsl:stylesheet>
  
  
  
  1.3       +197 -103  xml-cocoon/skins/xml.apache.org/stylesheets/document2html.xsl
  
  Index: document2html.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/skins/xml.apache.org/stylesheets/document2html.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- document2html.xsl	2000/01/24 21:40:28	1.2
  +++ document2html.xsl	2000/01/27 03:34:36	1.3
  @@ -6,15 +6,17 @@
     <xsl:param name="copyright"/>
     <xsl:param name="id"/>
   
  -  <xsl:template match="/">
  -    <xsl:apply-templates/>
  -  </xsl:template>
  -
  -  <xsl:template match="s1">
  +<!-- ====================================================================== -->
  +<!-- document section -->
  +<!-- ====================================================================== -->
  +
  + <xsl:template match="/">
  +  <!-- checks if this is the included document to avoid neverending loop -->
  +  <xsl:if test="not(book)">
       <html>
         <head>
           <script language="JavaScript" type="text/javascript" src="resources/script.js"/>
  -        <title><xsl:value-of select="@title"/></title>
  +        <title><xsl:value-of select="title"/></title>
         </head>
         <body text="#000000" link="#0000ff" vlink="#0000aa" alink="#ff0000"
               topmargin="4" leftmargin="4" marginwidth="4" marginheight="4"
  @@ -34,7 +36,7 @@
             </tr>
             <tr>
               <td width="100%" height="35" valign="top" align="left" colspan="2" bgcolor="#0086b2">
  -              <img src="graphics/{$id}-header.jpg" width="456" height="35" hspace="0"
vspace="0" border="0" alt="{s1/@title}" align="right"/>
  +              <img src="graphics/{$id}-header.jpg" width="456" height="35" hspace="0"
vspace="0" border="0" alt="{header/title}" align="right"/>
               </td>
             </tr>
             <tr>
  @@ -70,6 +72,7 @@
               </td>
             </tr>
           </table>
  +        
           <!-- THE MAIN PANEL (SIDEBAR AND CONTENT) -->
           <table width="100%" cellspacing="0" cellpadding="0" border="0">
             <tr>
  @@ -86,7 +89,10 @@
                 </table>
               </td>
             </tr>
  -        </table><br/>
  +        </table>
  +        
  +        <br/>
  +        
           <table width="100%" border="0" cellspacing="0" cellpadding="0">
             <tr><td bgcolor="#0086b2"><img src="images/dot.gif" width="1"
height="1"/></td></tr>
             <tr>
  @@ -98,16 +104,18 @@
           </table>
         </body>
       </html>
  -  </xsl:template>
  -
  -<!-- ###################################################################### -->
  -<!-- book -->
  -
  -  <xsl:template match="book">
  +   </xsl:if>
  +   
  +   <xsl:if test="book">
       <xsl:apply-templates/>
  +   </xsl:if>
     </xsl:template>
  +
  +<!-- ====================================================================== -->
  +<!-- book section -->
  +<!-- ====================================================================== -->
   
  -  <xsl:template match="document|faqs|changes|group">
  +  <xsl:template match="page|faqs|changes|todo|spec">
       <xsl:if test="@id=$id">
         <img src="graphics/{@id}-label-1.jpg" width="120" height="12" hspace="0" vspace="0"
border="0" alt="{@label}"/>
       </xsl:if>
  @@ -132,12 +140,20 @@
     <xsl:template match="separator">
       <img src="resources/separator.gif" width="120" height="6" hspace="0" vspace="0"
border="0"/><br/>
     </xsl:template>
  -
  -
  -<!-- ###################################################################### -->
  -<!-- document -->
  +  
  +<!-- ====================================================================== -->
  +<!-- header section -->
  +<!-- ====================================================================== -->
  +
  + <xsl:template match="header">
  +  <!-- ignore on general document -->
  + </xsl:template>
  +
  +<!-- ====================================================================== -->
  +<!-- body section -->
  +<!-- ====================================================================== -->
   
  -  <xsl:template match="s2">
  +  <xsl:template match="s1">
      <div align="right">
       <table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
  @@ -170,8 +186,7 @@
      <br/>
     </xsl:template>
   
  -  <xsl:template match="s3">
  -   <br/>
  +  <xsl:template match="s2">
      <div align="right">
       <table border="0" width="95%" cellspacing="0" cellpadding="0">
         <tr>
  @@ -204,8 +219,7 @@
      <br/>
     </xsl:template>
   
  -  <xsl:template match="s4">
  -   <br/>
  +  <xsl:template match="s3">
      <div align="right">
       <table border="0" width="90%" cellspacing="0" cellpadding="0">
         <tr>
  @@ -238,8 +252,50 @@
      <br/>
     </xsl:template>
   
  -<!-- ###################################################################### -->
  -<!-- blocks -->
  +  <xsl:template match="s4">
  +   <div align="right">
  +    <table border="0" width="85%" cellspacing="0" cellpadding="0">
  +      <tr>
  +        <td width="9" height="7" valign="bottom" align="right"><img src="resources/bar-top-left.gif"
width="9" height="7" vspace="0" hspace="0" border="0"/></td>
  +        <td background="resources/bar-border-top.gif"><img src="resources/void.gif"
width="1" height="5" vspace="0" hspace="0" border="0"/></td>
  +        <td width="9" height="7" valign="bottom" align="left"><img src="resources/bar-top-right.gif"
width="9" height="7" vspace="0" hspace="0" border="0"/></td>
  +      </tr>
  +      <tr>
  +        <td width="9" background="resources/bar-border-left.gif"><img src="resources/void.gif"
width="9" height="1" vspace="0" hspace="0" border="0"/></td>
  +        <td width="100%" bgcolor="#0086b2">
  +          <font size="-2" face="arial,helvetica,sanserif" color="#ffffff">
  +            <img src="resources/void.gif" width="5" height="5" vspace="0" hspace="0"
border="0"/><b><xsl:value-of select="@title"/></b></font>
  +         </td>
  +        <td width="9" background="resources/bar-border-right.gif"><img src="resources/void.gif"
width="9" height="1" vspace="0" hspace="0" border="0"/></td>
  +      </tr>
  +      <tr>
  +        <td width="9" height="12" valign="top" align="right"><img src="resources/bar-bottom-left.gif"
width="9" height="12" vspace="0" hspace="0" border="0"/></td>
  +        <td background="resources/bar-border-bottom.gif"><img src="resources/void.gif"
width="1" height="12" vspace="0" hspace="0" border="0"/></td>
  +        <td width="9" height="12" valign="top" align="left"><img src="resources/bar-bottom-right.gif"
width="9" height="12" vspace="0" hspace="0" border="0"/></td>
  +      </tr>
  +     </table>
  +     <table border="0" width="90%" cellspacing="0" cellpadding="0">
  +      <tr>
  +       <td>
  +        <font size="-3" face="arial,helvetica,sanserif" color="#000000"><xsl:apply-templates/></font>
  +       </td>
  +      </tr>
  +    </table>
  +   </div>
  +   <br/>
  +  </xsl:template>
  +    
  +<!-- ====================================================================== -->
  +<!-- footer section -->
  +<!-- ====================================================================== -->
  +
  + <xsl:template match="footer">
  +  <!-- ignore on general documents -->
  + </xsl:template>
  +
  +<!-- ====================================================================== -->
  +<!-- paragraph section -->
  +<!-- ====================================================================== -->
   
     <xsl:template match="p">
       <p align="justify"><xsl:apply-templates/></p>
  @@ -264,25 +320,13 @@
      </p>
     </xsl:template>
   
  -  <xsl:template match="ul">
  -    <ul><xsl:apply-templates/></ul>
  -  </xsl:template>
  -
  -  <xsl:template match="ol">
  -    <ol><xsl:apply-templates/></ol>
  -  </xsl:template>
  -
  -  <xsl:template match="li">
  -    <li><xsl:apply-templates/></li>
  -  </xsl:template>
  -
     <xsl:template match="source">
  -  <div align="center">
  -  <table cellspacing="4" cellpadding="0" border="0">
  +   <div align="center">
  +    <table cellspacing="4" cellpadding="0" border="0">
       <tr>
  -      <td bgcolor="#0086b2" width="1"   height="1"><img src="resources/void.gif"
width="1"   height="1" vspace="0" hspace="0" border="0"/></td>
  +      <td bgcolor="#0086b2" width="1" height="1"><img src="resources/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
         <td bgcolor="#0086b2" height="1"><img src="resources/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#0086b2" width="1"   height="1"><img src="resources/void.gif"
width="1"   height="1" vspace="0" hspace="0" border="0"/></td>
  +      <td bgcolor="#0086b2" width="1" height="1"><img src="resources/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
       </tr>
       <tr>
         <td bgcolor="#0086b2" width="1"><img src="resources/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  @@ -290,16 +334,61 @@
         <td bgcolor="#0086b2" width="1"><img src="resources/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
       </tr>
       <tr>
  -      <td bgcolor="#0086b2" width="1"   height="1"><img src="resources/void.gif"
width="1"   height="1" vspace="0" hspace="0" border="0"/></td>
  +      <td bgcolor="#0086b2" width="1" height="1"><img src="resources/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
         <td bgcolor="#0086b2" height="1"><img src="resources/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#0086b2" width="1"   height="1"><img src="resources/void.gif"
width="1"   height="1" vspace="0" hspace="0" border="0"/></td>
  +      <td bgcolor="#0086b2" width="1" height="1"><img src="resources/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
       </tr>
  -  </table>
  -  </div>
  +    </table>
  +   </div>
  +  </xsl:template>
  +  
  +  <xsl:template match="fixme">
  +   <!-- ignore on documentation -->
     </xsl:template>
   
  +<!-- ====================================================================== -->
  +<!-- list section -->
  +<!-- ====================================================================== -->
  +
  + <xsl:template match="ul|ol|dl">
  +  <blockquote>
  +   <xsl:copy>
  +    <xsl:apply-templates/>
  +   </xsl:copy>
  +  </blockquote>
  + </xsl:template>
  + 
  + <xsl:template match="li">
  +  <xsl:copy>
  +   <xsl:apply-templates/>
  +  </xsl:copy>
  + </xsl:template>
  +
  + <xsl:template match="sl">
  +  <ul>
  +   <xsl:apply-templates/>
  +  </ul>
  + </xsl:template>
  +
  + <xsl:template match="dt">
  +  <li>
  +   <strong><xsl:value-of select="."/></strong>
  +   <xsl:text> - </xsl:text>
  +   <xsl:value-of select="following::dd"/>   
  +  </li>
  + </xsl:template>
  + 
  + <xsl:template match="dd">
  +  <!-- ignore since already used -->
  + </xsl:template>
  +
  +<!-- ====================================================================== -->
  +<!-- table section -->
  +<!-- ====================================================================== -->
  +
     <xsl:template match="table">
       <table width="100%" border="0" cellspacing="2" cellpadding="2">
  +      <caption><xsl:value-of select="caption"/></caption>
         <xsl:apply-templates/>
       </table>
     </xsl:template>
  @@ -329,68 +418,73 @@
         &#160;
       </td>
     </xsl:template>
  -
  -<!-- ###################################################################### -->
  -<!-- markup -->
  -
  -  <xsl:template match="em">
  -    <b><xsl:apply-templates/></b>
  -  </xsl:template>
  -
  -  <xsl:template match="ref">
  -    <i><xsl:apply-templates/></i>
  -  </xsl:template>
     
  -  <xsl:template match="code">
  -    <code><font face="courier, monospaced"><xsl:apply-templates/></font></code>
  +  <xsl:template match="caption">
  +    <!-- ignore since already used -->
     </xsl:template>
  -  
  -  <xsl:template match="br">
  -    <br/>
  -  </xsl:template>
  -  
  -<!-- ###################################################################### -->
  -<!-- links -->
   
  -  <xsl:template match="link">
  -    <xsl:if test="string-length(@anchor)=0">
  -      <xsl:if test="string-length(@idref)=0">
  -        <xsl:apply-templates/>
  -      </xsl:if>
  -      <xsl:if test="string-length(@idref)>0">
  -        <a href="{@idref}.html"><xsl:apply-templates/></a>
  -      </xsl:if>
  -    </xsl:if>
  +<!-- ====================================================================== -->
  +<!-- markup section -->
  +<!-- ====================================================================== -->
   
  -    <xsl:if test="string-length(@anchor)>0">
  -      <xsl:if test="string-length(@idref)=0">
  -        <a href="#{@anchor}"><xsl:apply-templates/></a>
  -      </xsl:if>
  -      <xsl:if test="string-length(@idref)>0">
  -        <a href="{@idref}.html#{@anchor}"><xsl:apply-templates/></a>
  -      </xsl:if>
  -    </xsl:if>
  -  </xsl:template>
  -
  -  <xsl:template match="anchor">
  -    <a name="{@name}"><xsl:comment>anchor</xsl:comment></a>
  -  </xsl:template>
  -
  -  <xsl:template match="jump">
  -    <a href="{@href}"><xsl:apply-templates/></a>
  -  </xsl:template>
  + <xsl:template match="strong">
  +   <b><xsl:apply-templates/></b>
  + </xsl:template>
   
  -  <xsl:template match="img">
  -    <img src="images/{@src}" border="0" vspace="4" hspace="4" align="right"/>
  -  </xsl:template>
  + <xsl:template match="em">
  +    <i><xsl:apply-templates/></i>
  + </xsl:template>
   
  -<!-- ###################################################################### -->
  -<!-- copy
  + <xsl:template match="code">
  +    <code><font face="courier, monospaced"><xsl:apply-templates/></font></code>
  + </xsl:template>
  + 
  +<!-- ====================================================================== -->
  +<!-- images section -->
  +<!-- ====================================================================== -->
  +
  + <xsl:template match="figure">
  +  <p align="center"><img src="{@src}" alt="{@alt}" border="0" vspace="4" hspace="4"/></p>
  + </xsl:template>
  + 
  + <xsl:template match="img">
  +   <img src="{@src}" alt="{@alt}" border="0" vspace="4" hspace="4" align="right"/>
  + </xsl:template>
  +
  + <xsl:template match="icon">
  +   <img src="{@src}" alt="{@alt}" border="0" align="absmiddle"/>
  + </xsl:template>
  +
  +<!-- ====================================================================== -->
  +<!-- links section -->
  +<!-- ====================================================================== -->
  +
  + <xsl:template match="link">
  +   <a href="{@href}"><xsl:apply-templates/></a>
  + </xsl:template>
  +
  + <xsl:template match="connect">
  +  <!-- ignore until we have softlinking capabilities -->
  + </xsl:template>
  +
  + <xsl:template match="jump">
  +   <a href="{@href}#{@anchor}"><xsl:apply-templates/></a>
  + </xsl:template>
  +
  + <xsl:template match="fork">
  +   <a href="{@href}" target="_blank"><xsl:apply-templates/></a>
  + </xsl:template>
  +
  + <xsl:template match="anchor">
  +   <a name="{@name}"><xsl:comment>anchor</xsl:comment></a>
  + </xsl:template>  
  +
  +<!-- ====================================================================== -->
  +<!-- specials section -->
  +<!-- ====================================================================== -->
  +
  + <xsl:template match="br">
  +  <br/>
  + </xsl:template>
   
  -  <xsl:template match="@*|node()">
  -    <xsl:copy>
  -      <xsl:apply-templates select="@*|node()"/>
  -    </xsl:copy>
  -  </xsl:template>
  --->
   </xsl:stylesheet>
  
  
  
  1.2       +23 -32    xml-cocoon/skins/xml.apache.org/stylesheets/faqs2document.xsl
  
  Index: faqs2document.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/skins/xml.apache.org/stylesheets/faqs2document.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- faqs2document.xsl	2000/01/23 23:09:25	1.1
  +++ faqs2document.xsl	2000/01/27 03:34:36	1.2
  @@ -1,53 +1,44 @@
   <?xml version="1.0"?>
   
  -<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
  +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   
  -  <xsl:template match="/">
  -    <xsl:apply-templates/>
  -  </xsl:template>
  + <xsl:import href="copyover.xsl"/>
   
     <xsl:template match="faqs">
  -    <s1 title="{@title}">
  -      <s2 title="Questions">
  -        <ul>
  -          <xsl:apply-templates select="faq" mode="index"/>
  -        </ul>
  -      </s2>
  -      <s2 title="Answers">
  -        <br/>
  +   <document>
  +    <header>
  +     <title><xsl:value-of select="@title"/></title>
  +    </header>
  +    <body>
  +      <s1 title="Questions">
  +       <ul>
  +        <xsl:apply-templates select="faq" mode="index"/>
  +       </ul>
  +      </s1>
  +      <s1 title="Answers">
           <xsl:apply-templates select="faq"/>
  -      </s2>
  -    </s1>
  +      </s1>
  +    </body>
  +   </document>  
     </xsl:template>
   
     <xsl:template match="faq" mode="index">
       <li>
  -      <link anchor="faq-{position()}">
  -        <xsl:if test="string-length(@title)=0">
  -          <xsl:value-of select="q"/>
  -        </xsl:if>
  -        <xsl:if test="string-length(@title)>0">
  -          <xsl:value-of select="@title"/>
  -        </xsl:if>
  -      </link>
  +      <jump anchor="faq-{position()}">
  +        <xsl:value-of select="question"/>
  +      </jump>
       </li>
     </xsl:template>
   
     <xsl:template match="faq">
       <anchor name="faq-{position()}"/>
  -    <s3 title="{q}">
  -      <xsl:apply-templates select="a"/>
  -    </s3>
  +    <s2 title="{question}">
  +      <xsl:apply-templates/>
  +    </s2>
     </xsl:template>
   
  -  <xsl:template match="a">
  +  <xsl:template match="answer">
       <xsl:apply-templates/>
  -  </xsl:template>
  -
  -  <xsl:template match="@*|node()">
  -    <xsl:copy>
  -      <xsl:apply-templates select="@*|node()"/>
  -    </xsl:copy>
     </xsl:template>
   
   </xsl:stylesheet>
  
  
  
  1.1                  xml-cocoon/skins/xml.apache.org/stylesheets/book2project.xsl
  
  Index: book2project.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
    <!-- match the root book element -->
    <xsl:template match="book">
      <project>
  
        <parameter name="copyright" value="{@copyright}"/>
        <parameter name="name" value="{@software}"/>
  
        <!-- copy all resources to the targets -->
        <process source="sbk:/style/resources/" producer="directory">
          <processor name="xslt">
            <parameter name="stylesheet" value="sbk:/style/stylesheets/directory2project.xsl"/>
            <parameter name="base" value="resources/"/>
          </processor>
        </process>
  
        <xsl:apply-templates/>
  
      </project>
    </xsl:template>
  
  <!-- ********************************************************************** -->
  <!-- CREATE THE TARGET HTML -->
  <!-- ********************************************************************** -->
  
    <xsl:template match="page|hidden">
      <process source="{@source}" producer="parser">
        <processor name="xslt">
          <parameter name="stylesheet" value="sbk:/style/stylesheets/scan4resources.xsl"/>
        </processor>
      </process>
  
      <xsl:call-template name="header">
        <xsl:with-param name="id"     select="@id"/>
        <xsl:with-param name="source" select="@source"/>
        <xsl:with-param name="label"  select="@label"/>
      </xsl:call-template>
  
      <xsl:if test="not(name(.)='hidden')">
        <xsl:call-template name="labels">
          <xsl:with-param name="id" select="@id"/>
          <xsl:with-param name="label" select="@label"/>
        </xsl:call-template>
      </xsl:if>
      
      <create source="{@source}" target="{@id}.html" producer="parser" printer="html">
        <processor name="xslt">
          <parameter name="id" value="{@id}"/>
          <parameter name="stylesheet" value="sbk:/style/stylesheets/document2html.xsl"/>
        </processor>
      </create>
    </xsl:template>
  
    <xsl:template match="spec">
      <process source="{@source}" producer="parser">
        <processor name="xslt">
          <parameter name="stylesheet" value="sbk:/style/stylesheets/scan4resources.xsl"/>
        </processor>
      </process>
  
      <xsl:call-template name="header">
        <xsl:with-param name="id"     select="@id"/>
        <xsl:with-param name="source" select="@source"/>
        <xsl:with-param name="label"  select="@label"/>
      </xsl:call-template>
  
      <xsl:call-template name="labels">
        <xsl:with-param name="id" select="@id"/>
        <xsl:with-param name="label" select="@label"/>
      </xsl:call-template>
      
      <create source="{@source}" target="{@id}.html" producer="parser" printer="html">
        <processor name="xslt">
          <parameter name="id" value="{@id}"/>
          <parameter name="stylesheet" value="sbk:/style/stylesheets/spec2html.xsl"/>
        </processor>
      </create>
    </xsl:template>
    
    <xsl:template match="changes|faqs|todo">
      <process source="{@source}" producer="parser">
        <processor name="xslt">
          <parameter name="stylesheet" value="sbk:/style/stylesheets/{name(.)}2document.xsl"/>
        </processor>
        <processor name="xslt">
          <parameter name="stylesheet" value="sbk:/style/stylesheets/scan4resources.xsl"/>
        </processor>
      </process>
  
      <xsl:call-template name="header">
        <xsl:with-param name="id"     select="@id"/>
        <xsl:with-param name="source" select="@source"/>
        <xsl:with-param name="label"  select="@label"/>
        <xsl:with-param name="type"   select="name(.)"/>
      </xsl:call-template>
  
      <xsl:call-template name="labels">
        <xsl:with-param name="id" select="@id"/>
        <xsl:with-param name="label" select="@label"/>
      </xsl:call-template>
  
      <create source="{@source}" target="{@id}.html" producer="parser" printer="html">
        <processor name="xslt">
          <parameter name="stylesheet" value="sbk:/style/stylesheets/{name(.)}2document.xsl"/>
        </processor>
        <processor name="xslt">
          <parameter name="id" value="{@id}"/>
          <parameter name="stylesheet" value="sbk:/style/stylesheets/document2html.xsl"/>
        </processor>
      </create>
    </xsl:template>
    
    <xsl:template match="external">
      <xsl:call-template name="labels">
        <xsl:with-param name="id" select="concat('ext-',position())"/>
        <xsl:with-param name="label" select="@label"/>
      </xsl:call-template>
    </xsl:template>
    
  <!-- ********************************************************************** -->
  <!-- NAMED TEMPLATES -->
  <!-- ********************************************************************** -->
  
  <!-- Generate the doument header image -->
    <xsl:template name="header"> 
      <xsl:param name="id"/>
      <xsl:param name="source"/>
      <xsl:param name="label"/>
      <xsl:param name="type"/>
  
      <create source="{$source}" target="graphics/{$id}-header.jpg" producer="parser" printer="image">
        <xsl:if test="$type">
         <processor name="xslt">
          <parameter name="stylesheet" value="sbk:/style/stylesheets/{$type}2document.xsl"/>
         </processor>
        </xsl:if>
        <processor name="xslt">
          <parameter name="stylesheet" value="sbk:/style/stylesheets/document2image.xsl"/>
        </processor>
      </create>
    </xsl:template>
  
  <!-- Generate the three rollover label images -->
    <xsl:template name="labels"> 
      <xsl:param name="id"/>
      <xsl:param name="label"/>
      
      <create source="" target="graphics/{$id}-label-1.jpg" producer="context" printer="image">
        <parameter name="label" value="{$label}"/>
        <processor name="xslt">
          <parameter name="stylesheet" value="sbk:/style/stylesheets/context2label.xsl"/>
          <parameter name="image" value="sbk:/style/graphics/button-a.gif"/>
          <parameter name="color" value="ffffff"/>
        </processor>
      </create>
  
      <create source="" target="graphics/{$id}-label-2.jpg" producer="context" printer="image">
        <parameter name="label" value="{$label}"/>
        <processor name="xslt">
          <parameter name="stylesheet" value="sbk:/style/stylesheets/context2label.xsl"/>
          <parameter name="image" value="sbk:/style/graphics/button-b.gif"/>
          <parameter name="color" value="ffff00"/>
        </processor>
      </create>
  
      <create source="" target="graphics/{$id}-label-3.jpg" producer="context" printer="image">
        <parameter name="label" value="{$label}"/>
        <processor name="xslt">
          <parameter name="stylesheet" value="sbk:/style/stylesheets/context2label.xsl"/>
          <parameter name="image" value="sbk:/style/graphics/button-b.gif"/>
          <parameter name="color" value="ffffff"/>
        </processor>
      </create>
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-cocoon/skins/xml.apache.org/stylesheets/copyover.xsl
  
  Index: copyover.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
   <xsl:template match="todo">
    <document>
     <header>
      <title><xsl:value-of select="@title"/></title>
     </header>
     <body>
      <xsl:apply-templates/>
     </body>
    </document>
   </xsl:template>
  
   <xsl:template match="actions">
    <s1 title="{@priority}">
     <xsl:for-each select="action">
      <li>
       <em><xsl:value-of select="@context"/></em><xsl:text> - </xsl:text>
       <xsl:apply-templates/>
      </li>
     </xsl:for-each>
    </s1>
   </xsl:template>
   
    <xsl:template match="@*|node()">
      <xsl:copy>
        <xsl:apply-templates select="@*|node()"/>
      </xsl:copy>
    </xsl:template> 
   
  </xsl:stylesheet>
  
  
  1.1                  xml-cocoon/skins/xml.apache.org/stylesheets/document2image.xsl
  
  Index: document2image.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
    <xsl:param name="label"/>
  
    <xsl:template match="/">
      <xsl:variable name="label">
        <xsl:if test="header/title">
          <xsl:value-of select="//header/title"/>
        </xsl:if>
      </xsl:variable>
      
      <image width="456" height="35" bgcolor="0086b2">
        <text font="Arial" size="29" x="454" y="8" halign="right" valign="top" color="004080"
text="{$label}"/>
        <text font="Arial" size="29" x="452" y="6" halign="right" valign="top" color="ffffff"
text="{$label}"/>
      </image>
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-cocoon/skins/xml.apache.org/stylesheets/document2project.xsl
  
  Index: document2project.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
    <xsl:template match="/">
      <project>
        <xsl:apply-templates/>
      </project>
    </xsl:template>
  
    <xsl:template match="img|figure|icon">
      <resource source="{@src}" target="{@src}"/>
    </xsl:template>
  
    <xsl:template match="node()">
      <xsl:apply-templates/>
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-cocoon/skins/xml.apache.org/stylesheets/scan4resources.xsl
  
  Index: scan4resources.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
    <xsl:template match="/">
      <project>
        <xsl:apply-templates/>
      </project>
    </xsl:template>
  
    <xsl:template match="img|figure|icon">
      <resource source="{@src}" target="{@src}"/>
    </xsl:template>
  
    <xsl:template match="text()">
       <!-- ignore -->
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-cocoon/skins/xml.apache.org/stylesheets/spec2html.xsl
  
  Index: spec2html.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <!-- ====================================================================== -->
  <!-- inherit the document2html templates -->
  <!-- ====================================================================== -->
  
   <xsl:import href="document2html.xsl"/>
  
  <!-- ====================================================================== -->
  <!-- header -->
  <!-- ====================================================================== -->
  
   <xsl:template match="header">
    <div align="center">
     <table width="60%" border="0" cellspacing="2" cellpadding="2">
      <tr>
       <td bgcolor="#039acc" valign="center" align="center">
        <font color="#ffffff" size="-1" face="arial,helvetica,sanserif">
         <b>Authors</b>
        </font>
       </td>
      </tr>
      <xsl:for-each select="authors/person">
       <tr>
        <td bgcolor="#a0ddf0" valign="center" align="left">
         <font color="#000000" size="-1" face="arial,helvetica,sanserif">
          <b><xsl:value-of select="@name"/></b> - <xsl:value-of select="@email"/>
         </font>
        </td>
       </tr>
      </xsl:for-each>
      <tr>
       <td bgcolor="#039acc" valign="center" align="center">
        <font color="#ffffff" size="-1" face="arial,helvetica,sanserif">
         <b>Status</b>
        </font>
       </td>
      </tr>
      <tr>
       <td bgcolor="#a0ddf0" valign="center" align="left">
        <font color="#000000" size="-1" face="arial,helvetica,sanserif">
         <b><xsl:value-of select="type"/> - <xsl:value-of select="version"/></b>
        </font>
       </td>
      </tr>
      <tr>
       <td bgcolor="#039acc" valign="center" align="center">
        <font color="#ffffff" size="-1" face="arial,helvetica,sanserif">
         <b>Notice</b>
        </font>
       </td>
      </tr>
      <tr>
       <td bgcolor="#a0ddf0" valign="center" align="left">
        <font color="#000000" size="-1" face="arial,helvetica,sanserif">
         <xsl:value-of select="notice"/>
        </font>
       </td>
      </tr>
      <tr>
       <td bgcolor="#039acc" valign="center" align="center">
        <font color="#ffffff" size="-1" face="arial,helvetica,sanserif">
         <b>Abstract</b>
        </font>
       </td>
      </tr>
      <tr>
       <td bgcolor="#a0ddf0" valign="center" align="left">
        <font color="#000000" size="-1" face="arial,helvetica,sanserif">
         <xsl:value-of select="abstract"/>
        </font>
       </td>
      </tr>
     </table>
    </div>
    <br/>
   </xsl:template>
  
  <!-- ====================================================================== -->
  <!-- appendices section -->
  <!-- ====================================================================== -->
  
   <xsl:template match="appendices">
    <xsl:apply-templates/>
   </xsl:template>
  
  <!-- ====================================================================== -->
  <!-- bibliography -->
  <!-- ====================================================================== -->
  
   <xsl:template match="bl">
    <ul>
     <xsl:apply-templates/>
    </ul>
   </xsl:template>
  
   <xsl:template match="bi">
    <li>
     <b>
      <xsl:text>[</xsl:text>
       <a href="{@href}"><xsl:value-of select="@name"/></a>
      <xsl:text>]</xsl:text>
     </b>
     <xsl:text> &quot;</xsl:text>
     <xsl:value-of select="@title"/>
     <xsl:text>&quot;, </xsl:text>
     <xsl:value-of select="@authors"/>
     <xsl:if test="@date">
      <xsl:text>, </xsl:text>
      <xsl:value-of select="@date"/>
     </xsl:if>
    </li>
   </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-cocoon/skins/xml.apache.org/stylesheets/todo2document.xsl
  
  Index: todo2document.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
   <xsl:import href="copyover.xsl"/>
   
   <xsl:template match="todo">
    <document>
     <header>
      <title><xsl:value-of select="@title"/></title>
     </header>
     <body>
      <xsl:apply-templates/>
     </body>
    </document>
   </xsl:template>
  
   <xsl:template match="actions">
    <s2 title="{@priority}">
     <sl>
      <xsl:for-each select="action">
       <li>
        <strong><xsl:text>[</xsl:text><xsl:value-of select="@context"/><xsl:text>]</xsl:text></strong><xsl:text>
</xsl:text>
        <xsl:apply-templates/>
       </li>
      </xsl:for-each>
     </sl>
    </s2>
   </xsl:template>
   
  </xsl:stylesheet>
  
  

Mime
View raw message