cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r328727 - in /cocoon/whiteboard/daisy-to-docs/src/documentation: resources/stylesheets/daisy/ resources/stylesheets/daisy/preFilter.xsl skinconf.xml
Date Wed, 26 Oct 2005 21:02:22 GMT
Author: rgardler
Date: Wed Oct 26 14:02:11 2005
New Revision: 328727

URL: http://svn.apache.org/viewcvs?rev=328727&view=rev
Log:
add a link to the Daisy-Wiki page

Added:
    cocoon/whiteboard/daisy-to-docs/src/documentation/resources/stylesheets/daisy/
    cocoon/whiteboard/daisy-to-docs/src/documentation/resources/stylesheets/daisy/preFilter.xsl
  (with props)
Modified:
    cocoon/whiteboard/daisy-to-docs/src/documentation/skinconf.xml

Added: cocoon/whiteboard/daisy-to-docs/src/documentation/resources/stylesheets/daisy/preFilter.xsl
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/daisy-to-docs/src/documentation/resources/stylesheets/daisy/preFilter.xsl?rev=328727&view=auto
==============================================================================
--- cocoon/whiteboard/daisy-to-docs/src/documentation/resources/stylesheets/daisy/preFilter.xsl
(added)
+++ cocoon/whiteboard/daisy-to-docs/src/documentation/resources/stylesheets/daisy/preFilter.xsl
Wed Oct 26 14:02:11 2005
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!--+
+    | Add an edit link into the page content.
+    +-->
+
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:ns="http://outerx.org/daisy/1.0"
+                xmlns:p="http://outerx.org/daisy/1.0#publisher">
+                
+  <xsl:param name="daisy-wiki-URL">http://cocoon.zones.apache.org/daisy</xsl:param>
+  <xsl:param name="daisy-collection">legacydocs</xsl:param>
+
+  <xsl:template match="ns:parts">
+    <xsl:variable name="daisy-documentId"><xsl:value-of select="/p:publisherResponse/p:document/@documentId"/></xsl:variable>
+    <ns:parts>
+      <xsl:apply-templates/>
+      <ns:part mimeType="text/xml" label="Edit" name="SimpleDocumentContent" daisyHtml="true">
+        <html>
+          <body>
+            <div class="daisy-edit-link">
+            
+              <p>Please help us keep these documents accurate and up to date.
+                <a>
+                  <xsl:attribute name="href"><xsl:value-of select="concat($daisy-wiki-URL,
'/', $daisy-collection, '/', $daisy-documentId)"/></xsl:attribute>
+                  View and Edit
+                </a>the latest development version of this document
+              </p>
+              <!-- Direct edit link does not work as it does not go to a login screen
+                <form method="POST">
+                  <xsl:attribute name="action">
+                    <xsl:value-of select="concat($daisy-wiki-URL, '/', $daisy-collection,
'/', $daisy-documentId, '/edit')"/>
+                  </xsl:attribute>
+                  <input class="daisy-edit-button" type="submit" value="edit"/>
+                </form>
+              -->
+            </div>
+          </body>
+        </html>
+      </ns:part>
+    </ns:parts>
+  </xsl:template>  
+  
+
+  <xsl:template match="@*|*|text()|processing-instruction()|comment()">
+    <xsl:copy>
+      <xsl:apply-templates select="@*|*|text()|processing-instruction()|comment()"/>
+    </xsl:copy>
+  </xsl:template>
+</xsl:stylesheet>

Propchange: cocoon/whiteboard/daisy-to-docs/src/documentation/resources/stylesheets/daisy/preFilter.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: cocoon/whiteboard/daisy-to-docs/src/documentation/skinconf.xml
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/daisy-to-docs/src/documentation/skinconf.xml?rev=328727&r1=328726&r2=328727&view=diff
==============================================================================
--- cocoon/whiteboard/daisy-to-docs/src/documentation/skinconf.xml (original)
+++ cocoon/whiteboard/daisy-to-docs/src/documentation/skinconf.xml Wed Oct 26 14:02:11 2005
@@ -179,6 +179,14 @@
     -->
   <extra-css>
   
+    /* --------------------------------edit link ---------------------------------  */
+    .daisy-edit-link {
+      font-size: 75%;
+      border: 1px solid #aaaaaa;
+      margin-top: 40px;
+      text-align: center;
+    }
+    
     /* ---------------------------------- menu -----------------------------------  */ 
     #menu a {  font-weight: normal; text-decoration: none; }
     #menu a:visited {  font-weight: normal; text-decoration: none; }



Mime
View raw message