cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r602316 - in /cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/modules: menu2content.xsl menu2page.xsl
Date Sat, 08 Dec 2007 04:12:16 GMT
Author: vgritsenko
Date: Fri Dec  7 20:12:15 2007
New Revision: 602316

URL: http://svn.apache.org/viewvc?rev=602316&view=rev
Log:
missed one file rename

Added:
    cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/modules/menu2page.xsl
  (with props)
Removed:
    cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/modules/menu2content.xsl

Added: cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/modules/menu2page.xsl
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/modules/menu2page.xsl?rev=602316&view=auto
==============================================================================
--- cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/modules/menu2page.xsl
(added)
+++ cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/modules/menu2page.xsl
Fri Dec  7 20:12:15 2007
@@ -0,0 +1,48 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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.
+-->
+
+<!--
+  - Transforms menu.xml to the index page
+  -
+  - $Id$
+  -->
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+  <xsl:template match="book">
+    <page>
+      <title>Input Modules</title>
+      <content>
+        <p>Modules are used to access input and output data in a
+           pluggable way. Below there are samples for some of the
+           available input modules.
+        </p>
+        <table class="table">
+          <xsl:apply-templates select="menu/menu-item[@desc]"/>
+        </table>
+      </content>
+    </page>
+  </xsl:template>
+
+  <xsl:template match="menu-item[@desc]">
+    <tr>
+      <td><a href="{@href}"><xsl:value-of select="@label"/></a></td>
+      <td><xsl:value-of select="@desc" /></td>
+    </tr>
+  </xsl:template>
+</xsl:stylesheet>

Propchange: cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/modules/menu2page.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/trunk/blocks/cocoon-core-sample/cocoon-core-main-sample/src/main/resources/COB-INF/modules/menu2page.xsl
------------------------------------------------------------------------------
    svn:keywords = Id Revision Author Date



Mime
View raw message