You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2003/07/03 16:43:33 UTC

cvs commit: cocoon-lenya/src/webapp/lenya/xslt/admin page2xhtml.xsl page.xsl

andreas     2003/07/03 07:43:33

  Added:       src/webapp/lenya/xslt/admin page2xhtml.xsl
  Removed:     src/webapp/lenya/xslt/admin page.xsl
  Log:
  renamed page.xsl to page2xhtml.xsl
  
  Revision  Changes    Path
  1.1                  cocoon-lenya/src/webapp/lenya/xslt/admin/page2xhtml.xsl
  
  Index: page2xhtml.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <!-- $Id: page2xhtml.xsl,v 1.1 2003/07/03 14:43:33 andreas Exp $ -->
  
  <xsl:stylesheet version="1.0"
  	  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  	  xmlns="http://www.w3.org/1999/xhtml"
  	  xmlns:xhtml="http://www.w3.org/1999/xhtml"
      xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0"
  	  >
  	  
  	  
  <xsl:param name="contextprefix"/>
  
  <xsl:template match="/cmsbody">
    <xsl:copy>
      <html>
        <head>
          <title><xsl:value-of select="page:title"/></title>
          <link rel="stylesheet" type="text/css"
            href="{$contextprefix}/lenya/css/default.css" title="default css"/>
        </head>
        <body>
          <xsl:apply-templates/>
        </body>
      </html>
    </xsl:copy>
  </xsl:template>
  
  
  <xsl:template match="page:page">
    <table class="lenya-body" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="lenya-sidebar" width="20%">
          <div class="lenya-sidebar-heading">Administration</div>
          <xsl:copy-of select="/cmsbody/xhtml:div[@id = 'menu']"/>
        </td>
        <td class="lenya-content">
          <h2><xsl:apply-templates select="page:title/node()"/></h2>
          <xsl:apply-templates select="page:body/node()"/>
        </td>
      </tr>
    </table>
  </xsl:template>
  
  
  <!-- do not copy menu -->
  <xsl:template match="xhtml:div[@id = 'menu']"/>
  
  
  <xsl:template match="@*|node()">
    <xsl:copy>
      <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
  </xsl:template>
  
  
  </xsl:stylesheet>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org