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 " "> <!ENTITY copy "©"> <!ENTITY laquo "«"> <!ENTITY raquo "»"> ]> <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> > <a href="../">Samples</a> > <a href="./">Modules</a> > <span class="current"><xsl:value-of select="page/title"/></span> </td> </tr> </table> <table class="topline"><tr><td> </td></tr></table> <table cellspacing="0" cellpadding="0" summary="content pane"> <tr> <td width="5" class="navbar"> </td> <td rowspan="2" valign="top" nowrap="nowrap" width="200"> <xsl:apply-templates select="[EMAIL PROTECTED]'menu']"/> </td> <td valign="top" class="navbar" align="left">   </td> <td width="*" valign="top" class="navbar" align="right"> Page: <xsl:value-of select="$page" /> </td> </tr> <tr> <td> </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 " "> +<!ENTITY copy "©"> +<!ENTITY laquo "«"> +<!ENTITY raquo "»"> +]> +<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> > <a href="../">Samples</a> > <a href="./">Modules</a> > <span class="current"><xsl:value-of select="page/title"/></span> + </td> + </tr> + </table> + <table class="topline"><tr><td> </td></tr></table> + <table cellspacing="0" cellpadding="0" summary="content pane"> + <tr> + <td width="5" class="navbar"> </td> + <td rowspan="2" valign="top" nowrap="nowrap" width="200"> + <xsl:apply-templates select="[EMAIL PROTECTED]'menu']"/> + </td> + <td valign="top" class="navbar" align="left"> +   + </td> + <td width="*" valign="top" class="navbar" align="right"> + Page: <xsl:value-of select="$page" /> + </td> + </tr> + <tr> + <td> </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>