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 2009/03/19 14:29:24 UTC

svn commit: r755992 [5/5] - in /lenya/contributions/2_0_X/pubs: ./ defaultfiredocs/ defaultfiredocs/config/ defaultfiredocs/config/access-control/ defaultfiredocs/config/access-control/passwd/ defaultfiredocs/config/access-control/policies/ defaultfire...

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/xslt/navigation/menu.xsl
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/xslt/navigation/menu.xsl?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/xslt/navigation/menu.xsl (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/xslt/navigation/menu.xsl Thu Mar 19 13:29:18 2009
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+  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.
+-->
+
+<!-- $Id: menu.xsl 42703 2004-03-13 12:57:53Z gregor $ -->
+
+<xsl:stylesheet version="1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:site="http://apache.org/lenya/site/1.0"
+  xmlns="http://www.w3.org/1999/xhtml"
+  exclude-result-prefixes="site"
+  >
+  
+  
+  <xsl:template match="site:fragment">
+    <xsl:copy-of select="."/>
+    <div id="menu">
+      <xsl:apply-templates select="site:node"/>
+    </div>
+  </xsl:template>
+  
+  <xsl:template match="site:node[not(site:link)]"/>
+  <xsl:template match="site:node[@visible = 'false']"/>
+  
+  <xsl:template match="site:node">
+    <xsl:choose>
+      <xsl:when test="@ancestorOfCurrent = 'true' or site:link[@current = 'true']">
+        <div class="menublock-selected-{count(ancestor-or-self::site:node)}">
+          <xsl:apply-templates select="site:link"/>
+          <xsl:apply-templates select="site:node"/>
+        </div>
+      </xsl:when>
+      <xsl:otherwise>
+        <div class="menublock-{count(ancestor-or-self::site:node)}">
+          <xsl:apply-templates select="site:link"/>
+          <xsl:apply-templates select="site:node"/>
+        </div>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+  
+  
+  <xsl:template match="site:link">
+    <xsl:choose>
+      <xsl:when test="@current = 'true'">
+        <xsl:call-template name="item-selected"/>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:call-template name="item-default"/>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+  
+  
+  <xsl:template name="item-default">
+    <div class="menuitem-{count(ancestor-or-self::site:node)}">
+      <xsl:variable name="suffix">
+        <xsl:if test="starts-with(@href, 'lenya-document:')">
+          <xsl:text>?uuid2url.extension=html</xsl:text>
+        </xsl:if>
+      </xsl:variable>
+      <a href="{@href}{$suffix}"><xsl:value-of select="@label"/></a>
+    </div>
+  </xsl:template>
+  
+  
+  <xsl:template name="item-selected">
+    <div class="menuitem-selected-{count(ancestor-or-self::site:node)}">
+      <xsl:value-of select="@label"/>
+    </div>
+  </xsl:template>
+
+    
+</xsl:stylesheet> 

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/xslt/navigation/search.xsl
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/xslt/navigation/search.xsl?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/xslt/navigation/search.xsl (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/xslt/navigation/search.xsl Thu Mar 19 13:29:18 2009
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+  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.
+-->
+
+<!-- $Id: search.xsl 76019 2004-11-16 20:13:32Z gregor $ -->
+
+
+<xsl:stylesheet version="1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:nav="http://apache.org/cocoon/lenya/navigation/1.0"
+  xmlns="http://www.w3.org/1999/xhtml"
+  exclude-result-prefixes="nav"
+  >
+  
+  <xsl:param name="root"/>
+  <xsl:param name="chosenlanguage"/>
+  <xsl:param name="defaultlanguage"/>
+  
+  <xsl:variable name="languageSuffix">
+    <xsl:if test="$chosenlanguage != $defaultlanguage">
+      <xsl:text>_</xsl:text>
+      <xsl:value-of select="$chosenlanguage"/>
+    </xsl:if>
+  </xsl:variable>
+  
+  <xsl:template match="nav:site">
+    <div id="search">
+      <form action="{$root}search{$languageSuffix}.html" id="form-search">
+        <p>
+          <input class="searchfield" type="text" name="queryString" alt="Search field"/>
+          <input type="hidden" value="20" name="pageLength"/>
+          <input class="searchsubmit" type="submit" value="Go" name="input-go"/>
+        </p>
+      </form>
+    </div>
+  </xsl:template>
+  
+  <xsl:template match="@*|node()">
+    <xsl:copy>
+      <xsl:apply-templates select="@*|node()"/>
+    </xsl:copy>
+  </xsl:template>
+  
+</xsl:stylesheet>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/xslt/navigation/tabs.xsl
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/xslt/navigation/tabs.xsl?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/xslt/navigation/tabs.xsl (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/xslt/navigation/tabs.xsl Thu Mar 19 13:29:18 2009
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+  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.
+-->
+
+<!-- $Id: tabs.xsl 189880 2005-06-10 02:36:09Z gregor $ -->
+
+<xsl:stylesheet version="1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:site="http://apache.org/lenya/site/1.0"
+  xmlns="http://www.w3.org/1999/xhtml"
+  exclude-result-prefixes="site"
+  >
+  
+  <xsl:template match="site:fragment">
+    
+    <div id="tabs">
+      <table border="0" cellpadding="0" cellspacing="0">
+        <tr>
+          <xsl:call-template name="pre-separator"/>
+          <xsl:for-each select="site:node">
+            <xsl:if test="position() &gt; 1 and not (@visible = 'false')">
+              <xsl:call-template name="separator"/>
+            </xsl:if>
+            
+            <xsl:choose>
+              <xsl:when test="@visible = 'false'"/>
+              <xsl:when test="@ancestorOfCurrent = 'true' or site:link[@current = 'true']">
+                <xsl:call-template name="tab-selected"/>
+              </xsl:when>
+              <xsl:otherwise>
+                <xsl:call-template name="tab"/>
+              </xsl:otherwise>
+            </xsl:choose>
+            
+          </xsl:for-each>
+          <xsl:call-template name="post-separator"/>
+        </tr>
+      </table>
+    </div>
+    
+  </xsl:template>
+  
+  
+  <xsl:template name="tab">
+    <td><div class="tab"><xsl:apply-templates select="site:link"/></div></td>
+  </xsl:template>
+  
+  
+  <xsl:template name="tab-selected">
+    <td><div class="tab-selected"><xsl:apply-templates select="site:link"/></div></td>
+  </xsl:template>
+  
+  
+  <xsl:template name="separator">
+    <td><div class="tab-separator">&#160;</div></td>
+  </xsl:template>
+  
+  
+  <xsl:template name="pre-separator">
+    <td><div class="tab-pre-separator">&#160;</div></td>
+  </xsl:template>
+  
+  
+  <xsl:template name="post-separator">
+    <td class="tab-post-separator"><div class="tab-separator">&#160;</div></td>
+  </xsl:template>
+  
+  
+  <xsl:template match="site:link">
+    <xsl:param name="suffix"/>
+    <a class="tab{$suffix}">
+      <xsl:if test="not(@current = 'true')">
+        <xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute>
+      </xsl:if>
+      <span><xsl:value-of select="@label"/></span>
+    </a>
+  </xsl:template>
+  
+  
+</xsl:stylesheet> 

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/xslt/page.xsl
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/xslt/page.xsl?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/xslt/page.xsl (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/xslt/page.xsl Thu Mar 19 13:29:18 2009
@@ -0,0 +1,175 @@
+<?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.
+-->
+
+<!-- $Id: page2xhtml.xsl 439367 2006-09-01 16:15:28Z andreas $ -->
+
+<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"
+  xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0" 
+  xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+  xmlns:meta="http://apache.org/lenya/meta/1.0/"
+  xmlns:i="http://apache.org/cocoon/include/1.0"
+  exclude-result-prefixes="page xhtml lenya"
+  >
+
+  <xsl:param name="pub"/>  
+  <xsl:param name="area"/> 
+  <xsl:param name="path"/>
+  <xsl:param name="uuid"/>
+  <xsl:param name="language"/>
+  <xsl:param name="defaultLanguage"/>
+  <xsl:param name="documentUrl"/>
+  
+  <xsl:param name="lastPublishedUser"/>
+  <xsl:param name="lastPublishedDate"/>
+  
+  <!--Following is a show off to explain lenya.properties.xml -->
+  <xsl:param name="author"/>
+  <xsl:param name="lenyaVersion"/>
+  
+  <xsl:variable name="webappUrl" select="concat('/', $pub, '/', $area, $documentUrl)"/>
+
+  <xsl:variable name="languageSuffix">
+    <xsl:if test="$language != $defaultLanguage">
+      <xsl:text>_</xsl:text><xsl:value-of select="$language"/>
+    </xsl:if>
+  </xsl:variable>
+  
+  <xsl:template match="/*">
+    <html>
+      <head>
+        <link rel="stylesheet" href="/{$pub}/{$area}/defaultstyle/css/page.css" type="text/css" media="screen"/>
+        <!--
+        <link rel="stylesheet" href="/{$pub}/{$area}/defaultstyle/css/print.css" type="text/css" media="print"/>
+        -->
+        <link rel="alternate" type="application/rss+xml"  title="News" href="/{$pub}/{$area}/news.rss"/>
+        <i:include src="cocoon://modules/atom/serviceLinks" strip-root="true"/>
+        <meta content="Apache Lenya {$lenyaVersion}" name="generator"/>
+        <title><meta:value element="title" ns="http://purl.org/dc/elements/1.1/" default="error-404"
+          i18n:attr="default" uuid="{$uuid}" lang="{$language}"/></title>
+        <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
+        <link rel="SHORTCUT ICON" href="/{$pub}/{$area}/favicon.ico"/>
+      </head>
+      <body>
+        <div id="page">
+          <table width="100%" cellpadding="0" cellspacing="0" border="0">
+            <tr>
+              <td id="publication-title">
+                <i18n:translate>
+                  <i18n:text>publication-title</i18n:text>
+                  <i18n:param><xsl:value-of select="$author"/></i18n:param>
+                </i18n:translate>
+              </td>
+              <td id="project-logo"><img src="/{$pub}/{$area}/images/project-logo.png" alt="project logo"/></td>
+            </tr>
+          </table>
+          <i:include src="cocoon:/tabs"/>
+          <table width="100%" border="0" cellpadding="0" cellspacing="0">
+            <tr>
+              <td valign="top" style="width: 230px">
+                <i:include src="cocoon:/menu"/>
+                <i:include src="cocoon:/languageSelector"/>
+              </td>
+              <td valign="top">
+                <div id="main">
+                  <i:include src="cocoon:/breadcrumb"/>
+                  <xsl:call-template name="searchForm"/>
+                  
+                  <div id="content">
+                    <i:include src="cocoon:/{$pub}/{$area}/{$uuid}/{$language}.content">
+                      <i:fallback>
+                        <p>
+                          This document doesn't exist.
+                        </p>
+                      </i:fallback>
+                    </i:include>
+                  </div>
+                  
+                  <xsl:call-template name="footer"/>
+                </div>
+              </td>
+            </tr>
+          </table>
+        </div>
+        
+      </body>
+    </html>
+  </xsl:template>
+  
+  
+  <xsl:template name="searchForm">
+    <div id="search">
+      <form action="/{$pub}/{$area}/search{$languageSuffix}.html" id="form-search">
+        <p>
+          <input class="searchfield" type="text" name="queryString" alt="Search field"/>
+          <input type="hidden" value="20" name="pageLength"/>
+          <input class="searchsubmit" type="submit" value="Go" name="input-go"/>
+        </p>
+      </form>
+    </div>
+  </xsl:template>
+  
+  
+  <xsl:template name="footer">
+    <div id="footer">
+      <p>
+        <xsl:choose>
+          <xsl:when test="$lastPublishedUser != ''">
+            <i18n:translate>
+              <i18n:text>last-published</i18n:text>
+              <i18n:param><i18n:date-time src-pattern="yyyy-MM-dd HH:mm:ss"><xsl:value-of select="$lastPublishedDate"/></i18n:date-time></i18n:param>
+              <i18n:param><xsl:value-of select="$lastPublishedUser"/></i18n:param>
+            </i18n:translate>
+          </xsl:when>
+          <xsl:otherwise>
+            <i18n:text>never-published</i18n:text>
+          </xsl:otherwise>
+        </xsl:choose>
+      </p>
+    </div>
+  </xsl:template>
+  
+  
+  <xsl:template match="@*|node()" priority="-1">
+    <xsl:copy>
+      <xsl:apply-templates select="@*|node()"/>
+    </xsl:copy>
+  </xsl:template>
+  
+  
+  <!--
+  Wget shall download the images which are referenced in CSS. 
+  -->
+  <xsl:template name="cssHelper">
+    <!--
+    <div style="display: none">
+      <img src="{$root}modules/svg/tab-topLeft-7-FFEECC-FFD580.png" alt=""/>
+      <img src="{$root}modules/svg/tab-topRight-7-FFEECC-FFD580.png" alt=""/>
+      <img src="{$root}modules/svg/tab-bottomLeft-7-FFF6E5-FFD580.png" alt=""/>
+      <img src="{$root}modules/svg/tab-bottomRight-7-FFF6E5-FFD580.png" alt=""/>
+    </div>
+    -->
+  </xsl:template>
+  
+  
+  <xsl:template match="comment()"/>
+  
+  
+</xsl:stylesheet> 

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/config/cocoon-xconf/resource-type-homepage.xconf
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/config/cocoon-xconf/resource-type-homepage.xconf?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/config/cocoon-xconf/resource-type-homepage.xconf (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/config/cocoon-xconf/resource-type-homepage.xconf Thu Mar 19 13:29:18 2009
@@ -0,0 +1,50 @@
+<?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.
+-->
+
+<!-- $Id: doctypes.xconf 164635 2005-04-25 20:01:43Z tschlabach $ -->
+
+<xconf xpath="/cocoon/resource-types" unless="/cocoon/resource-types/component-instance[@name = 'homepage']">
+
+  <component-instance name="homepage"
+                      logger="lenya.resourcetypes.homepage"
+                      class="org.apache.lenya.cms.publication.ResourceTypeImpl">
+    <schema 
+       uri="fallback://lenya/modules/homepage/resources/schemas/homepage.rng"
+       namespace="http://relaxng.org/ns/structure/0.9"
+    />
+
+    <!-- Default time in seconds until the resource-type has expired -->  
+    <expires seconds="0" />
+
+    <sample 
+       mime-type="application/xhtml+xml"
+       uri="fallback://lenya/modules/homepage/samples/homepage.xml"
+    />
+    <link-attribute xpath="//*[namespace-uri() = 'http://www.w3.org/1999/xhtml']/@href"/>
+    <link-attribute xpath="//*[namespace-uri() = 'http://www.w3.org/1999/xhtml']/@data"/>
+    <link-attribute xpath="//*[namespace-uri() = 'http://www.w3.org/1999/xhtml']/@src"/>
+    <format name="xhtml" uri="cocoon://modules/homepage/xhtml.xml"/>
+    <format name="luceneIndex" uri="cocoon://modules/xhtml/lucene-index"/>
+    <format name="webdavGET" uri="cocoon://modules/xhtml/davget.xml"/>
+    <!-- "xslt-clean" format is used by webDAV (and other editors?) to "clean" xml content before it is validated/saved -->
+    <format name="xslt-clean" uri="fallback://lenya/modules/homepage/xslt/clean-homepage.xsl"/>
+    <format name="xhtml.xsl" uri="/modules/xhtml/xslt/xhtml2xhtml.xsl"/>
+    
+  </component-instance>
+
+</xconf>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/config/menus/homepage.xsp
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/config/menus/homepage.xsp?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/config/menus/homepage.xsp (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/config/menus/homepage.xsp Thu Mar 19 13:29:18 2009
@@ -0,0 +1,74 @@
+<?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.
+-->
+
+<!-- $Id: generic.xsp 155806 2005-03-01 17:55:42Z andreas $ -->
+
+<xsp:page 
+    language="java" 
+    xmlns:xsp="http://apache.org/xsp"
+    xmlns:xsp-request="http://apache.org/xsp/request/2.0"
+    xmlns:input="http://apache.org/cocoon/xsp/input/1.0"
+    xmlns:i18n="http://apache.org/cocoon/i18n/2.1"    
+    xmlns:wf="http://apache.org/cocoon/lenya/workflow/1.0"
+    xmlns:uc="http://apache.org/cocoon/lenya/usecase/1.0"
+    xmlns="http://apache.org/cocoon/lenya/menubar/1.0"
+>
+
+  <xsp:structure>
+    <xsp:include>org.apache.lenya.cms.publication.Document</xsp:include>
+    <xsp:include>org.apache.lenya.cms.publication.Publication</xsp:include>
+  </xsp:structure>
+  
+  <menu>
+
+    <menus>
+      <menu i18n:attr="name" name="Edit">
+          <xsp:logic>
+            try {
+                Object doc = <input:get-attribute module="page-envelope" as="object" name="document"/>;
+                if (doc instanceof Document &amp;&amp; ((Document) doc).exists()) {
+                    String doctype = <input:get-attribute module="page-envelope" as="string" name="document-type"/>;
+                    if ("homepage".equals(doctype)) {
+                        <block areas="authoring">
+                          <item uc:usecase="kupu.edit" href="?">
+                             <i18n:text>With Kupu</i18n:text>
+                          </item>
+                          <item uc:usecase="bxe.edit" href="?">
+                            <i18n:text>With BXE</i18n:text>
+                          </item>
+                          <item uc:usecase="editors.forms">
+                            <xsp:attribute name="href"><xsp:expr>"?form=" + doctype</xsp:expr></xsp:attribute>
+                            <i18n:text>With Forms</i18n:text>
+                          </item>
+                          <item uc:usecase="editors.oneform" href="?">
+                            <i18n:text>With one Form</i18n:text>
+                          </item>
+                        </block>
+                    }
+                }
+            }
+            catch (Exception e) {
+                throw new ProcessingException("Error during menu generation: ", e);
+            }
+          </xsp:logic>
+      </menu>
+      
+    </menus>
+    
+  </menu>
+</xsp:page>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/config/module.xml
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/config/module.xml?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/config/module.xml (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/config/module.xml Thu Mar 19 13:29:18 2009
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+-->
+
+<!-- $Id: publication.xml 374687 2006-02-03 15:24:55Z michi $ -->
+
+<module xmlns="http://apache.org/lenya/module/1.0">
+  <id>org.apache.lenya.modules.homepage</id>
+  <package>org.apache.lenya.modules</package>
+  <version>0.1-dev</version>
+  <name>Homepage</name>
+  <lenya-version>@lenya.version@</lenya-version>
+  <description>Homepage resource type for default publication.</description>
+</module>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/menus.xmap
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/menus.xmap?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/menus.xmap (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/menus.xmap Thu Mar 19 13:29:18 2009
@@ -0,0 +1,35 @@
+<?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.
+-->
+
+<!-- $Id: menus.xmap 178738 2005-05-27 03:42:09Z gregor $ -->
+
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+  <map:pipelines>
+
+    <map:pipeline>
+    	
+      <map:match pattern="**">
+        <map:generate type="serverpages" src="config/menus/homepage.xsp"/>
+        <map:serialize type="xml"/>
+      </map:match>
+      
+    </map:pipeline>
+    
+  </map:pipelines>
+</map:sitemap>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/resources/css/homepage.css
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/resources/css/homepage.css?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/resources/css/homepage.css (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/resources/css/homepage.css Thu Mar 19 13:29:18 2009
@@ -0,0 +1,2 @@
+/* Put your doctype-specific CSS here */
+

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/resources/i18n/cmsui.xml
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/resources/i18n/cmsui.xml?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/resources/i18n/cmsui.xml (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/resources/i18n/cmsui.xml Thu Mar 19 13:29:18 2009
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+-->
+
+<!-- $Id: cmsui.xml 446542 2006-09-15 08:14:39Z andreas $ -->
+
+<catalogue xml:lang="en" xmlns:xhtml="http://www.w3.org/1999/xhtml"
+  xmlns="http://apache.org/cocoon/i18n/2.1">
+
+  <message key="resourceType-homepage">Homepage</message>
+  
+</catalogue>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/resources/i18n/cmsui_de.xml
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/resources/i18n/cmsui_de.xml?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/resources/i18n/cmsui_de.xml (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/resources/i18n/cmsui_de.xml Thu Mar 19 13:29:18 2009
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+-->
+
+<!-- $Id: cmsui_de.xml 446542 2006-09-15 08:14:39Z andreas $ -->
+
+<catalogue xml:lang="de" xmlns:xhtml="http://www.w3.org/1999/xhtml"
+  xmlns="http://apache.org/cocoon/i18n/2.1">
+
+  <message key="resourceType-homepage">Homepage</message>
+  
+</catalogue>
+

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/resources/schemas/homepage.rng
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/resources/schemas/homepage.rng?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/resources/schemas/homepage.rng (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/resources/schemas/homepage.rng Thu Mar 19 13:29:18 2009
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+-->
+
+<!-- $Id: xhtml.rng 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<!--+
+    | XHTML doctype
+    +-->
+
+<!--+
+    | Namespaces:
+    | lenya namespace is required for embedding assets.
+    +-->
+
+<grammar ns="http://www.w3.org/1999/xhtml"
+    xmlns="http://relaxng.org/ns/structure/1.0"
+    xmlns:xhtml="http://www.w3.org/1999/xhtml"
+    xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0"
+    >
+
+<include href="fallback://lenya/modules/xhtml/resources/schemas/xhtml.rng"/>
+
+</grammar>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/samples/homepage.xml
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/samples/homepage.xml?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/samples/homepage.xml (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/samples/homepage.xml Thu Mar 19 13:29:18 2009
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<html xmlns="http://www.w3.org/1999/xhtml" 
+      xmlns:xhtml="http://www.w3.org/1999/xhtml" 
+      xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0"
+>
+  <head>
+    <title>Default Publication</title>
+  </head>
+  <body>
+    <h1>Default Publication</h1>
+    <p>Welcome to the default Lenya publication!</p>
+    <p>The purpose of this publication is</p>
+    <ul>
+      <li>to show beginners the basic functionality of the Lenya CMS,</li>
+      <li>to provide an "out of the box" publication that can be easily adapted and used, and</li>
+      <li>to provide a basis for reference implementations of new concepts and best practices.</li>
+    </ul>
+    <p>
+    You won't find any fancy and confusing bells and whistles here, but the
+    publication contains everything you need to get started.
+    </p>
+  </body>
+</html>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/sitemap.xmap?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/sitemap.xmap (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/sitemap.xmap Thu Mar 19 13:29:18 2009
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+-->
+
+<!-- $Id: doctypes.xmap 179488 2005-06-02 02:29:39Z gregor $ -->
+
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+  <map:pipelines>
+
+    <map:pipeline>
+      <!-- View Revision? -->
+      <map:match pattern="*.xml">
+        <map:match type="step" pattern="view-revision">
+          <map:generate type="serverpages" src="fallback://lenya/content/rc/view.xsp">
+          </map:generate>
+          <map:transform src="fallback://lenya/xslt/rc/toDoc.xsl"/>
+          <map:transform src="fallback://lenya/modules/homepage/xslt/homepage2xhtml.xsl">
+            <map:parameter name="rendertype" value="{1}"/>
+            <map:parameter name="nodeid" value="{page-envelope:document-name}"/>
+            <map:parameter name="language" value="{page-envelope:document-language}"/>
+          </map:transform>
+          <map:serialize type="xml"/>
+        </map:match>
+      </map:match>
+      
+      <map:match pattern="news-*_*.xml">
+        <map:select type="resource-exists">
+          <map:when test="site:/{2}/news?format={1}">
+            <map:generate src="site:/{2}/news?format={1}"/>
+          </map:when>
+          <map:otherwise>
+            <map:generate src="fallback://lenya/content/util/empty.xml"/>
+          </map:otherwise>
+        </map:select>
+        <map:serialize type="xml"/>
+      </map:match>
+
+      <!-- parametrized doctype matcher -->
+      <!-- pattern="{format}.xml" -->
+      <map:match pattern="*.xml">
+        <map:generate src="cocoon:/{1}.xml/{page-envelope:publication-id}/{page-envelope:area}/{page-envelope:document-uuid}/{page-envelope:document-language}"/>
+        <map:serialize type="xml"/>
+      </map:match>
+      
+      <!-- {format}.xml/{pubId}/{area}/{uuid}/{language} -->
+      <map:match pattern="*.xml/*/*/*/*">
+        <map:generate src="lenya-document:{4},pub={2},area={3},lang={5}{link:rev}"/>
+        <map:transform src="fallback://lenya/modules/homepage/xslt/homepage2xhtml.xsl">
+          <map:parameter name="rendertype" value="{request-param:rendertype}"/>
+          <map:parameter name="nodeid" value="{page-envelope:document-name}"/>
+          <map:parameter name="language" value="{page-envelope:document-language}"/>
+          <map:parameter name="pubId" value="{page-envelope:publication-id}"/>
+        </map:transform>
+        <map:transform type="cinclude"/>
+        <map:serialize type="xml"/>
+      </map:match>
+
+    </map:pipeline>
+    
+  </map:pipelines>
+</map:sitemap>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/xslt/clean-homepage.xsl
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/xslt/clean-homepage.xsl?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/xslt/clean-homepage.xsl (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/xslt/clean-homepage.xsl Thu Mar 19 13:29:18 2009
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+  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.
+-->
+
+<xsl:stylesheet version="1.0"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xhtml="http://www.w3.org/1999/xhtml"
+    >
+
+  <xsl:import href="fallback://lenya/modules/xhtml/xslt/clean-xhtml.xsl"/>
+
+</xsl:stylesheet> 

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/xslt/homepage2xhtml.xsl
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/xslt/homepage2xhtml.xsl?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/xslt/homepage2xhtml.xsl (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/homepage/xslt/homepage2xhtml.xsl Thu Mar 19 13:29:18 2009
@@ -0,0 +1,54 @@
+<?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.
+-->
+
+<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:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0"
+  xmlns:ci="http://apache.org/cocoon/include/1.0" 
+  >
+  
+  <xsl:import href="fallback://lenya/modules/xhtml/xslt/xhtml2xhtml.xsl"/>
+  
+  <xsl:param name="pubId"/>
+  <xsl:param name="contextPath"/>
+  <xsl:param name="language"/>
+  <xsl:param name="newsPath"/>
+  
+  <xsl:template match="/xhtml:html">
+    <xsl:copy-of select="lenya:meta"/>
+    <html>
+      <head>
+        <link rel="stylesheet" href="{$contextPath}/{$pubId}/modules/homepage/css/homepage.css" type="text/css"/>
+        <ci:include src="cocoon:/news-header_{$language}.xml"/>
+      </head>
+      <body>
+        <ci:include src="cocoon:/news-include_{$language}.xml"/>
+        <div id="body">
+          <xsl:if test="$rendertype = 'edit'">
+            <xsl:attribute name="bxe_xpath">/xhtml:html/xhtml:body</xsl:attribute>
+          </xsl:if>
+          <xsl:apply-templates select="xhtml:body/node()"/>
+        </div>
+      </body>
+    </html>
+  </xsl:template>
+  
+  
+</xsl:stylesheet>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/readme.xml
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/readme.xml?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/readme.xml (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/readme.xml Thu Mar 19 13:29:18 2009
@@ -0,0 +1,51 @@
+<?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.
+-->
+
+<!-- $Id: introduction.xml 473861 2006-11-12 03:51:14Z gregor $ -->
+
+<page:page 
+  xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0"
+  xmlns="http://www.w3.org/1999/xhtml"
+>
+  <page:head/>
+  <page:body>
+    <h1>README: Default publication</h1>
+    <h2>Use WebDAV:</h2>
+    <ul>
+      <li>Cadaver: cadaver http://127.0.0.1:8888/default/webdav</li>
+      <li>More Info: <a href="http://wiki.apache.org/lenya/HowToEditWithWebDAV">http://wiki.apache.org/lenya/HowToEditWithWebDAV</a></li>
+    </ul>
+<!--
+    <h2>Enable JCR</h2>
+    <ul>
+      <li>Build Lenya and start it</li>
+      <li>
+        Import content from filesystem into JCR Repository by executing:
+        <a href="../index.html?lenya.usecase=jcr.import">../index.html?lenya.usecase=jcr.import</a>
+      </li>
+      <li>Stop Lenya</li>
+      <li>
+        Switch the NodeFactory within <i>build/lenya/webapp/WEB-INF/classes/org/apache/lenya/lenya.roles</i>
+        to <i>org.apache.lenya.cms.jcr.JCRNodeFactory</i>
+      </li>
+      <li>Optional: The JCR implementation can be configured within local.build.properties resp. build.properties</li>
+      <li>Start Lenya</li>
+    </ul>
+-->
+  </page:body>
+</page:page>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/resources/misc/bxe/xhtml-namespaces.xml
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/resources/misc/bxe/xhtml-namespaces.xml?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/resources/misc/bxe/xhtml-namespaces.xml (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/resources/misc/bxe/xhtml-namespaces.xml Thu Mar 19 13:29:18 2009
@@ -0,0 +1,27 @@
+<?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.
+-->
+
+<!-- $Id: xhtml-namespaces.xml 473861 2006-11-12 03:51:14Z gregor $ -->
+
+<namespaces>
+
+<xmlns>xhtml=http://www.w3.org/1999/xhtml</xmlns>
+<xmlns>dc=http://purl.org/dc/elements/1.1/</xmlns>
+<xmlns>lenya=http://apache.org/cocoon/lenya/page-envelope/1.0</xmlns>
+
+</namespaces>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/sitemap.xmap?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/sitemap.xmap (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/sitemap.xmap Thu Mar 19 13:29:18 2009
@@ -0,0 +1,29 @@
+<?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.
+-->
+
+<!-- $Id: sitemap.xmap 450752 2006-09-28 08:09:13Z josias $ -->
+
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+  
+  <map:pipelines>
+    
+    <map:pipeline type="noncaching">
+      <map:mount uri-prefix="" src="{fallback:lenya/modules/defaultstyle/sitemap.xmap}"/>
+    </map:pipeline>
+    
+  </map:pipelines>
+</map:sitemap>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/test/anteater/tests.xml
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/test/anteater/tests.xml?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/test/anteater/tests.xml (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/test/anteater/tests.xml Thu Mar 19 13:29:18 2009
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+-->
+
+<!-- $Id: tests.xml 473861 2006-11-12 03:51:14Z gregor $ -->
+
+<property name="publication-id" value="default"/>
+
+<target name="pubs.default" depends="
+        pubs.default.intro,
+        pubs.default.login,
+        pubs.default.admin
+    "/>
+
+<target name="pubs.default.intro">
+  <echo>Testing the default publication</echo>
+  <echo>Testing introduction</echo>
+  <httpRequest path="/${publication-id}/introduction.html">
+    <match>
+      <responseCode value="200"/>
+      <regexp>Default Publication</regexp>
+    </match>
+  </httpRequest>
+</target>
+
+<target name="pubs.default.login">
+  <echo>Testing login</echo>
+  
+  <httpRequest
+      path="/${publication-id}/admin/index.html"
+      followRedirects="true">
+    <match>
+      <responseCode value="200"/>
+      <regexp>Username:</regexp>
+    </match>
+  </httpRequest>
+  
+  <httpRequest
+      path="/${publication-id}/admin/index.html"
+      followRedirects="true">
+    <parameter name="username" value="lenya"/>
+    <parameter name="password" value="levi"/>
+    <match>
+      <responseCode value="200"/>
+      <regexp>Welcome</regexp>
+    </match>
+  </httpRequest>
+  
+</target>
+
+<target name="pubs.default.admin" depends="pubs.default.admin.user"/>
+
+<target name="pubs.default.admin.user">
+  <echo>Testing user administration</echo>
+  <httpRequest path="/${publication-id}/admin/index.html">
+    <match>
+      <responseCode value="200"/>
+      <regexp>Default Publication</regexp>
+    </match>
+  </httpRequest>
+</target>

Added: lenya/contributions/2_0_X/pubs/defaultfiredocs/test/webtest/tests.xml
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/test/webtest/tests.xml?rev=755992&view=auto
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/test/webtest/tests.xml (added)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/test/webtest/tests.xml Thu Mar 19 13:29:18 2009
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+-->
+
+<!-- $Id: tests.xml 473861 2006-11-12 03:51:14Z gregor $ -->
+
+<property name="publication-id" value="default"/>
+
+<target name="pubs.default">
+
+  <testSpec name="pubs.default.intro">
+    &config;
+    <steps>
+      <invoke url="${publication-id}/introduction.html"/>
+      <verifytitle text="Lenya CMS Publication: Default Publication"/>
+    </steps>
+  </testSpec>
+  
+  <testSpec name="pubs.default.login">
+    &config;
+    <steps>
+      <invoke url="${publication-id}/introduction.html"/>
+      <clicklink label="Login as Editor"/>
+      <verifytitle text="LOGIN"/>
+      
+      <setinputfield name="username" value="lenya"/>
+      <setinputfield name="password" value="wrong"/>
+      <clickbutton label="login"/>
+      <verifytitle text="LOGIN"/>
+      <verifytext text="Authentication failed"/>
+      
+      <!--
+      <setinputfield name="username" value="lenya"/>
+      <setinputfield name="password" value="levi"/>
+      <clickbutton label="login"/>
+      <verifytitle text="Apache Lenya - default"/>
+      -->
+      
+    </steps>
+  </testSpec>
+  
+</target>
+  



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