You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ed...@apache.org on 2003/09/10 14:52:12 UTC
cvs commit: cocoon-lenya/src/webapp/lenya/xslt/rc rco-exception.xsl
edith 2003/09/10 05:52:12
Modified: src/webapp/lenya/xslt/rc rco-exception.xsl
Log:
RC exception with new layout
Revision Changes Path
1.8 +80 -58 cocoon-lenya/src/webapp/lenya/xslt/rc/rco-exception.xsl
Index: rco-exception.xsl
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/rc/rco-exception.xsl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- rco-exception.xsl 23 Jul 2003 13:21:51 -0000 1.7
+++ rco-exception.xsl 10 Sep 2003 12:52:12 -0000 1.8
@@ -1,58 +1,80 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-
-<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:rc="http://apache.org/cocoon/lenya/rc/1.0"
- >
-
-<xsl:template match="/">
- <xsl:apply-templates/>
-</xsl:template>
-
-<xsl:template match="rc:exception">
-<html>
-<body>
-<head>
-<link rel="stylesheet" type="text/css" href="/lenya/lenya/css/default.css" />
-</head>
- <xsl:apply-templates/>
-</body>
-</html>
-</xsl:template>
-
-<xsl:template match="rc:file-reserved-checkout-exception">
- <h2>File Reserved Checkout Exception</h2>
- <p>
- Resource has already been checked out:
- </p>
- <table>
- <tr><td>User:</td><td><xsl:value-of select="rc:user"/></td></tr>
- <tr><td>Date:</td><td><xsl:value-of select="rc:date"/></td></tr>
- <tr><td>Filename:</td><td><xsl:value-of select="rc:filename"/></td></tr>
- </table>
-</xsl:template>
-
-<xsl:template match="rc:file-reserved-checkin-exception">
- <h2>File Reserved Checkin Exception</h2>
- <p>
- Resource has already been checked out:
- </p>
- <table>
- <tr><td>User:</td><td><xsl:value-of select="rc:user"/></td></tr>
- <tr><td>Date:</td><td><xsl:value-of select="rc:date"/></td></tr>
- <tr><td>Filename:</td><td><xsl:value-of select="rc:filename"/></td></tr>
- </table>
-</xsl:template>
-
-
-<xsl:template match="rc:generic-exception">
- <h2>Generic Exception</h2>
- <p>
- Check the log files :-)
- </p>
- <table>
- <tr><td>Filename:</td><td><xsl:value-of select="rc:filename"/></td></tr>
- </table>
-</xsl:template>
-
-</xsl:stylesheet>
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:rc="http://apache.org/cocoon/lenya/rc/1.0"
+ xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0"
+ >
+ <xsl:import href="../util/page-util.xsl"/>
+
+ <xsl:output version="1.0" indent="yes" encoding="ISO-8859-1"/>
+
+ <xsl:template match="/">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="rc:exception">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="rc:file-reserved-checkout-exception">
+ <page:page>
+ <page:title>File Reserved Checkout Exception</page:title>
+ <page:body>
+ <div class="lenya-box">
+ <div class="lenya-box-title">File not checked out yet</div>
+ <div class="lenya-box-body">
+ <p> The resource has already been checked out:
+ </p>
+ <table>
+ <tr><td>User:</td><td><xsl:value-of select="rc:user"/></td></tr>
+ <tr><td>Date:</td><td><xsl:value-of select="rc:date"/></td></tr>
+ <tr><td>Filename:</td><td><xsl:value-of select="rc:filename"/></td></tr>
+ </table>
+ </div>
+ </div>
+ </page:body>
+ </page:page>
+ </xsl:template>
+
+ <xsl:template match="rc:file-reserved-checkin-exception">
+ <page:page>
+ <page:title>File Reserved Checkin Exception</page:title>
+ <page:body>
+ <div class="lenya-box">
+ <div class="lenya-box-title">File not checked in yet</div>
+ <div class="lenya-box-body">
+ <p> The resource has already been checked out:
+ </p>
+ <table>
+ <tr><td>User:</td><td><xsl:value-of select="rc:user"/></td></tr>
+ <tr><td>Date:</td><td><xsl:value-of select="rc:date"/></td></tr>
+ <tr><td>Filename:</td><td><xsl:value-of select="rc:filename"/></td></tr>
+ </table>
+ </div>
+ </div>
+ </page:body>
+ </page:page>
+ </xsl:template>
+
+
+ <xsl:template match="rc:generic-exception">
+ <page:page>
+ <page:title>Generic Exception</page:title>
+ <page:body>
+ <div class="lenya-box">
+ <div class="lenya-box-title">Generic Exception</div>
+ <div class="lenya-box-body">
+ <p>
+ Check the log files :-)
+ </p>
+ <table>
+ <tr><td>Filename:</td><td><xsl:value-of select="rc:filename"/></td></tr>
+ </table>
+ </div>
+ </div>
+ </page:body>
+ </page:page>
+ </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