You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by je...@apache.org on 2003/05/04 04:06:26 UTC

cvs commit: cocoon-2.1/src/webapp/samples/modules site2html.xsl

jefft       2003/05/03 19:06:26

  Modified:    src/webapp/samples/modules site2html.xsl
  Log:
  Fix DOS linefeeds that had somehow gotten into CVS
  
  Revision  Changes    Path
  1.2       +67 -1     cocoon-2.1/src/webapp/samples/modules/site2html.xsl
  
  Index: site2html.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/webapp/samples/modules/site2html.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- site2html.xsl	9 Mar 2003 00:11:15 -0000	1.1
  +++ site2html.xsl	4 May 2003 02:06:26 -0000	1.2
  @@ -1 +1,67 @@
  -<?xml version="1.0"?>
<!DOCTYPE html [
    <!ENTITY nbsp "&#160;">
    <!ENTITY copy "&#0169;">
    <!ENTITY laquo "&#0171;">
    <!ENTITY raquo "&#0187;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:param name="page" />

    <xsl:template match="site">
        <html>
            <head>
                <title>
                    <xsl:value-of select="page/title" />
                </title>
                <link rel="stylesheet" href="page.css" type="text/css"/>
            </head>
            <body>
                <table class="path">
                    <tr>
                        <td>
                            <a href="../../">Apache Cocoon Main</a>&#160;&gt;&#160;<a href="../">Samples</a>&#160;&gt;&#160;<a href="./">Modules</a>&#160;&gt;&#160;<span class="current"><xsl:value-of select="page/title"/></span>                        
                        </td>
                    </tr>
                </table>            
                <table class="topline"><tr><td>&#160;</td></tr></table>
                <table cellspacing="0" cellpadding="0" summary="content pane">
                    <tr>
                        <td width="5" class="navbar">&#160;</td>
                        <td rowspan="2" valign="top" nowrap="nowrap" width="200">
                            <xsl:apply-templates select="table[@class='menu']"/>
                        </td>
                        <td valign="top" class="navbar" align="left">
                            &#160;
                        </td>
                        <td width="*" valign="top" class="navbar" align="right">
                            Page: <xsl:value-of select="$page" />
                        </td>
                    </tr>
                    <tr>
                        <td>&#160;</td>
                        <td class="content" valign="top" colspan="2">
                            <xsl:apply-templates select="page"/>
                        </td>
                    </tr>
                </table>
                <table>
                    <tr>
                        <td class="copyright">
                            Copyright (c) 1999-2002 <a href="http://www.apache.org/">Apache Software Foundation</a>. All Rights Reserved.
                        </td>
                    </tr>
                </table>
            </body>
        </html>
    </xsl:template>
    
    <xsl:template match="node()|@*" priority="-1">
        <xsl:copy>
            <xsl:apply-templates select="@*"/>
            <xsl:apply-templates/>
        </xsl:copy>
    </xsl:template>
    
</xsl:stylesheet>
  \ No newline at end of file
  +<?xml version="1.0"?>
  +<!DOCTYPE html [
  +<!ENTITY nbsp "&#160;">
  +<!ENTITY copy "&#0169;">
  +<!ENTITY laquo "&#0171;">
  +<!ENTITY raquo "&#0187;">
  +]>
  +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  +
  +  <xsl:param name="page" />
  +
  +  <xsl:template match="site">
  +    <html>
  +      <head>
  +        <title>
  +          <xsl:value-of select="page/title" />
  +        </title>
  +        <link rel="stylesheet" href="page.css" type="text/css"/>
  +      </head>
  +      <body>
  +        <table class="path">
  +          <tr>
  +            <td>
  +              <a href="../../">Apache Cocoon Main</a>&#160;&gt;&#160;<a href="../">Samples</a>&#160;&gt;&#160;<a href="./">Modules</a>&#160;&gt;&#160;<span class="current"><xsl:value-of select="page/title"/></span>                        
  +            </td>
  +          </tr>
  +        </table>            
  +        <table class="topline"><tr><td>&#160;</td></tr></table>
  +        <table cellspacing="0" cellpadding="0" summary="content pane">
  +          <tr>
  +            <td width="5" class="navbar">&#160;</td>
  +            <td rowspan="2" valign="top" nowrap="nowrap" width="200">
  +              <xsl:apply-templates select="table[@class='menu']"/>
  +            </td>
  +            <td valign="top" class="navbar" align="left">
  +              &#160;
  +            </td>
  +            <td width="*" valign="top" class="navbar" align="right">
  +              Page: <xsl:value-of select="$page" />
  +            </td>
  +          </tr>
  +          <tr>
  +            <td>&#160;</td>
  +            <td class="content" valign="top" colspan="2">
  +              <xsl:apply-templates select="page"/>
  +            </td>
  +          </tr>
  +        </table>
  +        <table>
  +          <tr>
  +            <td class="copyright">
  +              Copyright (c) 1999-2002 <a href="http://www.apache.org/">Apache Software Foundation</a>. All Rights Reserved.
  +            </td>
  +          </tr>
  +        </table>
  +      </body>
  +    </html>
  +  </xsl:template>
  +
  +  <xsl:template match="node()|@*" priority="-1">
  +    <xsl:copy>
  +      <xsl:apply-templates select="@*"/>
  +      <xsl:apply-templates/>
  +    </xsl:copy>
  +  </xsl:template>
  +
  +</xsl:stylesheet>