svn commit: r743041 [9/9] - in /lenya/trunk: org.apache.lenya.core.api/ org.apache.lenya.core.api/src/main/java/org/apache/lenya/cms/publication/ org.apache.lenya.core.api/src/test/ org.apache.lenya.core.api/src/test/java/ org.apache.lenya.core.api/src...

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/config/module.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/config/module.xml?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/config/module.xml (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/config/module.xml Tue Feb 10 18:22:23 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/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/menus.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/menus.xmap?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/menus.xmap (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/menus.xmap Tue Feb 10 18:22:23 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/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/resources/css/homepage.css
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/resources/css/homepage.css?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/resources/css/homepage.css (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/resources/css/homepage.css Tue Feb 10 18:22:23 2009
@@ -0,0 +1,2 @@
+/* Put your doctype-specific CSS here */
+

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/resources/i18n/cmsui.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/resources/i18n/cmsui.xml?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/resources/i18n/cmsui.xml (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/resources/i18n/cmsui.xml Tue Feb 10 18:22:23 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/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/resources/i18n/cmsui_de.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/resources/i18n/cmsui_de.xml?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/resources/i18n/cmsui_de.xml (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/resources/i18n/cmsui_de.xml Tue Feb 10 18:22:23 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/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/resources/schemas/homepage.rng
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/resources/schemas/homepage.rng?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/resources/schemas/homepage.rng (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/resources/schemas/homepage.rng Tue Feb 10 18:22:23 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/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/samples/homepage.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/samples/homepage.xml?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/samples/homepage.xml (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/samples/homepage.xml Tue Feb 10 18:22:23 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/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/sitemap.xmap?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/sitemap.xmap (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/sitemap.xmap Tue Feb 10 18:22:23 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="include"/>
+        <map:serialize type="xml"/>
+      </map:match>
+
+    </map:pipeline>
+    
+  </map:pipelines>
+</map:sitemap>

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/xslt/clean-homepage.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/xslt/clean-homepage.xsl?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/xslt/clean-homepage.xsl (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/xslt/clean-homepage.xsl Tue Feb 10 18:22:23 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/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/xslt/homepage2xhtml.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/xslt/homepage2xhtml.xsl?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/xslt/homepage2xhtml.xsl (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/modules/homepage/xslt/homepage2xhtml.xsl Tue Feb 10 18:22:23 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/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/readme.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/readme.xml?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/readme.xml (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/readme.xml Tue Feb 10 18:22:23 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/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/misc/bxe/xhtml-namespaces.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/misc/bxe/xhtml-namespaces.xml?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/misc/bxe/xhtml-namespaces.xml (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/misc/bxe/xhtml-namespaces.xml Tue Feb 10 18:22:23 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/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/css/homepage.css
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/css/homepage.css?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/css/homepage.css (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/css/homepage.css Tue Feb 10 18:22:23 2009
@@ -0,0 +1,5 @@
+/* Put your doctype-specific CSS here */
+
+div#body {
+  margin-right: 300px;
+}
\ No newline at end of file

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/css/links.css
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/css/links.css?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/css/links.css (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/css/links.css Tue Feb 10 18:22:23 2009
@@ -0,0 +1 @@
+/* Put your doctype-specific CSS here */
\ No newline at end of file

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/css/news.css
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/css/news.css?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/css/news.css (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/css/news.css Tue Feb 10 18:22:23 2009
@@ -0,0 +1,71 @@
+/*
+* 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.
+*/
+
+div.newsDate {
+  font-size: small;
+  font-weight: normal;
+  float: right
+}
+
+
+div#news {
+  font-family: Verdana, Arial, Sans-serif;
+  clear: both;
+  float: right;
+  width: 250px;
+  border: solid 1px #BB9999;
+  margin: 0px 10px 10px 10px;
+  padding: 10px;
+  background-color: #FFEEEE;
+}
+
+div#news h1 {
+  font-size: medium;
+  margin: 0;
+  padding: 0;
+}
+
+div#news h2 {
+  font-size: small;
+  margin-top: 10px;
+  border-bottom: none;
+  margin-bottom: 0;
+}
+
+div#news p {
+  margin-top: 0.3em;
+}
+
+div#news div.newsDate {
+  float: none;
+}
+
+div.rsslink {
+  float: right;
+  font-size: x-small;
+  border-top: solid 1px #FFFFFF;
+  border-left: solid 1px #FFFFFF;
+  border-bottom: solid 1px #666666;
+  border-right: solid 1px #666666;
+  background-color: #DDBBBB;
+  color: #000000;
+  padding: 1px 3px 1px 3px;
+}
+
+div.rsslink a {
+  text-decoration: none;
+}
\ No newline at end of file

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/css/page.css
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/css/page.css?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/css/page.css (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/css/page.css Tue Feb 10 18:22:23 2009
@@ -0,0 +1,533 @@
+/*
+* 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.
+*/
+
+/* page */
+
+@import url("news.css");
+
+#page {
+    padding: 0px;
+    margin: 0px;
+}
+
+/* tabs */
+
+#tabs {
+    border-bottom: solid 5px #DDBBBB;
+    color: Maroon;
+}
+
+#tabs a {
+    text-decoration: none;
+    color: Maroon;
+}
+
+#tabs table {
+    font-family: Verdana, Arial, Sans-serif;
+    font-size: 80%;
+}
+
+#tabs td {
+    vertical-align: bottom;
+}
+
+#tabs div {
+    white-space: nowrap;
+}
+
+.tab a, .tab-selected a {
+    display: block;
+}
+
+.tab a span, .tab-selected a span {
+    padding: .3em .6em;
+    display: block;
+}
+
+.tab a span {
+    background: url('/modules/svg/tab-topRight-5-FFEEEE-BB9999.png') right top no-repeat;
+    border-bottom: solid 1px #BB9999;
+}
+
+.tab a {
+    background: url('/modules/svg/tab-topLeft-5-FFEEEE-BB9999.png') left top no-repeat;
+}
+
+.tab a:hover span {
+    background: url('/modules/svg/tab-topRight-5-EECCCC-BB9999.png') right top no-repeat;
+    border-bottom: solid 1px #BB9999;
+}
+  
+.tab a:hover {
+    background: url('/modules/svg/tab-topLeft-5-EECCCC-BB9999.png') left top no-repeat;
+}
+  
+.tab-selected a span {
+    background: url('/modules/svg/tab-topRight-5-DDBBBB-BB9999.png') right top no-repeat;
+    border-bottom: solid 1px #DDBBBB;
+}
+
+.tab-selected a {
+    background: url('/modules/svg/tab-topLeft-5-DDBBBB-BB9999.png') left top no-repeat;
+}
+
+.tab-separator {
+    border-bottom: solid 1px #BB9999;
+}
+
+.tab-pre-separator {
+    width: 25px;
+    border-bottom: solid 1px #BB9999;
+}
+
+td.tab-post-separator {
+    width: 100%;
+}
+
+/* menu */
+
+#menu, #languageselector {
+    font-family: Verdana, Arial, Sans-serif;
+    border: solid 1px #BB9999;
+    border-left: none;
+    border-top: none;
+    color: Maroon;
+    padding: 5px 0px 5px 0px;
+  background-color: #FFCCCC;
+}
+
+#menu {
+  border-bottom: none;
+}
+
+#languageselector {
+    font-size: 80%;
+    padding-top: 10px;
+    padding-left: 15px;
+    /*
+    border: none;
+    background: url('/modules/svg/tab-bottomRight-5-FFCCCC-BB9999.png') right bottom no-repeat;
+    */
+}
+
+#languageselector ul {
+    list-style-type: none;
+    margin: 0;
+    padding: 0;
+}
+
+#languageselector ul li {
+    display: inline;
+}
+
+#languageselector a img {
+    border: none;
+    margin: 0;
+    padding: 1px;
+  border: solid 5px #FFCCCC;
+    /*
+  border: solid 1px #000000;
+  */
+  vertical-align: middle;
+}
+
+#menu a, #languageselector a {
+    text-decoration: none;
+    color: Maroon;
+}
+
+#languageselector a {
+}
+
+#languageselector a:hover {
+    text-decoration: none;
+}
+
+#languageselector a.lenya-language-isCurrent {
+    font-weight:bold;
+}
+
+#languageselector a.lenya-language-isCurrent img {
+  border: solid 5px #FFEEEE;
+}
+
+#languageselector a.lenya-language-isAvailable {
+}
+
+#languageselector a.lenya-language-isUnavailable {
+    color:#aaaaaa;
+    opacity: 0.5;
+}
+
+#menu a:hover {
+    text-decoration: underline;
+}
+
+
+.menublock-1, .menublock-selected-1 {
+    padding: 0px;
+    /*
+    border-top: solid 1px #DDBBBB;
+    background: #FFCCCC;
+    */
+}
+
+.menublock-1 .menublock-2 { display: none; }
+.menublock-2 .menublock-3 { display: none; }
+.menublock-3 .menublock-4 { display: none; }
+.menublock-4 .menublock-5 { display: none; }
+
+.menuitem-1, .menuitem-selected-1,
+.menuitem-2, .menuitem-selected-2,
+.menuitem-3, .menuitem-selected-3,
+.menuitem-4, .menuitem-selected-4,
+.menuitem-5, .menuitem-selected-5 {
+  font-size: 80%;
+}
+  
+.menuitem-1, .menuitem-selected-1 {
+  margin: 10px 0px 0px 0px;
+  padding: 2px 5px 2px 30px;
+  background: url('/default/live/images/bullet.png') 16px .4em no-repeat;
+}
+
+.menuitem-2, .menuitem-selected-2 {
+  padding: 2px 5px 2px 50px;
+  background: url('/default/live/images/bullet.png') 36px .4em no-repeat;
+}
+
+.menuitem-3, .menuitem-selected-3 {
+  padding: 2px 5px 2px 70px;
+  background: url('/default/live/images/bullet.png') 56px .4em no-repeat;
+}
+  
+.menuitem-4, .menuitem-selected-4 {
+  padding: 2px 5px 2px 90px;
+  background: url('/default/live/images/bullet.png') 76px .4em no-repeat;
+}
+  
+.menuitem-5, .menuitem-selected-5 {
+  padding: 2px 5px 2px 110px;
+  background: url('/default/live/images/bullet.png') 96px .4em no-repeat;
+}
+  
+
+.menuitem-selected-1,
+.menuitem-selected-2,
+.menuitem-selected-3,
+.menuitem-selected-4,
+.menuitem-selected-5 {
+  background-color: #FFEEEE;
+/*
+  color: black;
+  background-color: #BB9999;
+  font-weight: bold;
+*/
+}
+  
+/* breadcrumb */
+
+#breadcrumb {
+    padding: 3px 0px 3px 30px;
+    background-color: #FFEEEE;
+    border-top: solid 1px #BB9999;
+    border-bottom: solid 1px #BB9999;
+    font-family: Verdana, Arial, Sans-serif;
+    font-size: 80%;
+}
+
+#breadcrumb a {
+    text-decoration: none;
+    color: Maroon;
+}
+
+#search {
+    font-family: Verdana, Arial, Sans-serif;
+    font-size: 100%;
+    margin-right: 10px;
+    float: right;
+    position:relative;
+    top:-20px
+}
+
+input.searchfield {
+    font-size: 80%;
+    background-color: #ffffff;
+    border: 1px solid #BB9999;
+}
+
+input.searchsubmit {
+    font-size: 80%;
+    color: Maroon;
+    background-color: #FFEEEE;
+    border: 1px solid #BB9999;
+}
+
+input.searchsubmit:hover {
+    background-color: #DDBBBB;
+}
+
+/*
+#search a {
+    text-decoration: none;
+    color: Maroon;
+}
+*/
+
+/* body */
+
+body {
+    font-family: Verdana, Arial, Sans-serif;
+}
+
+#body {
+    border: none;
+    padding: 1em;
+    margin-left: 10px;
+}
+
+#footer {
+    border: none;
+    border-top: 1px solid #BBBB99;
+    padding: 0em 1em;
+    margin-left: 10px;
+    font-style: italic;
+    color: Maroon;
+}
+
+#main {
+/*
+    float: left;
+    width: 80%;
+*/
+}
+
+h1 { font-size: 140%; }
+h2 { font-size: 100%; }
+h3 { font-size: 80%; }
+p { font-size: 80%; }
+li { font-size: 80%; }
+
+.crossheading { font-weight: bold; font-size: 110%; }
+
+table.simple {
+    border-collapse: collapse;
+/*
+    background-color: #909090;
+    border-color: #909090;
+*/
+    width: auto;
+}
+
+div#body td {
+    font-size: small;
+}
+
+td.simple {
+    font-size: 80%;
+    padding: 3px;
+    background-color: White;
+    border: solid 1px Navy;
+    vertical-align: top;
+}
+
+th.vertical {
+  font-size: small;
+  font-weight: normal;
+  text-align: right;
+  padding-right: 1em;
+  color: #666666;
+}
+  
+img.simple {
+}
+
+#publication-title {
+    font-family: verdana, arial, sans-serif;
+    font-weight: bold;
+    font-size: 20px;
+    vertical-align: bottom;
+    padding-left: 25px;
+    padding-bottom: 15px;
+    color: Maroon;
+}
+
+#project-logo {
+    padding: 10px 20px 0px 0px;
+    text-align: right;
+}
+
+.media {
+    text-align: center;
+    padding: 10px;
+}
+
+.caption {
+    padding: 5px;
+    text-align: center;
+    font-style: italic;
+    font-size: 80%;
+}
+
+.abstract {
+    font-weight: bold;
+}
+
+h1 {
+    font-size: 120%;
+    color: Maroon;
+}
+
+h2 {
+    font-size: 100%;
+    color: Maroon;
+    border-bottom: solid 1px #BB9999;
+    margin-top: 30px;
+}
+
+.asset { 
+    display: block;
+    color: #000;
+    margin: 10px 10px 10px 5px;
+    font-size: small;
+}
+
+.asset img {
+    vertical-align: middle;
+}
+
+div.search-box {
+	border: solid 1px #CCCCCC;
+	width: auto;
+	max-width: 100%;
+	font-size: small;
+	margin-bottom: 10px;
+}
+
+div.search-box-title {
+    background-color: #DDDCCF;
+	border-bottom: solid 1px #CCCCCC;
+	color: Black;
+	font-weight: bold;
+	padding: 3px 10px;
+}
+
+div.search-box-body {
+    padding: 10px;
+    background-color: #F5F4E9;
+	color: Black;
+}
+
+table.search-table {
+	color: Black;
+	background-color: White;
+	border-spacing: 0px;
+	border-collapse: collapse;
+}
+
+table.search-table-noborder {
+	border: 0px;
+	border-spacing: 0px;
+}
+
+table.search-table th {
+    background-color: #DDDCCF;
+	border: solid 1px #CCCCCC;
+	color: Black;
+	font-weight: bold;
+	padding: 3px 10px;
+	text-align: left;
+	font-size: small;
+}
+
+table.search-table td {
+    background-color: #F5F4E9;
+	border: solid 1px #CCCCCC;
+	padding: 3px 10px;
+	font-size: small;
+	color: Black;
+}
+
+table.search-table-noborder td {
+	border: 0px;
+	padding: 3px 10px;
+	font-size: small;
+}
+
+table.search-table-noborder-nopadding td {
+	border: 0px;
+	padding: 0px;
+	font-size: small;
+}
+
+table.search-table-noborder-nopadding th {
+	font-size: small;
+}
+
+/* Broken Internal Links in Authoring area */
+a.brokenlink {
+    background-color: yellow;
+    border: 1px dashed #000000;
+    text-decoration: none;
+}
+
+/* Search Results */
+.search-results-form {
+    margin-bottom: 20px; }
+
+ul.search-results {
+    list-style-type: none;
+    margin: 0;
+    padding: 0;
+} 
+
+ul.search-results li {
+    padding: 0.50em 0;
+}
+
+ul.images li {
+    float: left;
+    padding: 0 10px 10px 0;
+    text-align: center;
+}
+
+ul.images img {
+    border: solid 1px blue;
+}
+
+ul.images div.imageTitle {
+}
+
+.search-result-score {
+    font-size: 90%;
+    font-weight: normal;
+}
+
+.search-result-rank {
+    float: left; 
+}
+
+.search-result-title {
+    margin: 0 0 0 30px;
+    padding: 0;
+    font-weight: bold;
+}
+
+.search-result-description {
+    margin-left: 30px;
+    color: #999999;
+}

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/css/xhtml.css
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/css/xhtml.css?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/css/xhtml.css (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/css/xhtml.css Tue Feb 10 18:22:23 2009
@@ -0,0 +1,14 @@
+/* Put your doctype-specific CSS here */
+
+.column1of2 {
+        position: relative;
+        width: 48%;
+        float: left;
+}
+
+.column2of2 {
+        position: relative;
+        float: left;
+        width: 48%;
+        margin-left: 12px;
+}
\ No newline at end of file

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/images/bullet.png
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/images/bullet.png?rev=743041&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/images/bullet.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/images/project-logo.png
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/images/project-logo.png?rev=743041&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/resources/shared/images/project-logo.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/sitemap.xmap?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/sitemap.xmap (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/sitemap.xmap Tue Feb 10 18:22:23 2009
@@ -0,0 +1,384 @@
+<?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: sitemap.xmap 669185 2008-06-18 14:27:40Z andreas $ -->
+
+
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+  <map:components>
+    <map:serializers default="xhtml">
+      <map:serializer logger="sitemap.serializer.links" name="links" src="org.apache.lenya.cms.cocoon.serialization.LinkSerializer"/>
+    </map:serializers>
+  </map:components>
+
+  <map:views>
+    <map:view from-position="last" name="links">
+      <map:serialize type="links" />
+    </map:view>
+  </map:views>
+
+
+  <map:pipelines>
+
+    <!-- This pipeline handles helper requests and metadata, not the actual publication documents -->
+    <map:pipeline>
+
+      <!--
+         FIXME: the whole webdav shebang should be handled by the webdav module sitemap.
+      -->
+      <!-- catch webdav GET requests. -->
+      <map:match pattern="*/webdav**">
+        <map:mount uri-prefix="{1}/" src="{fallback:lenya/modules/webdav/sitemap.xmap}" check-reload="true" reload-method="synchron"/>    
+      </map:match>
+
+      <!-- catch PUT requests (used by webdav clients) -->
+      <map:select type="request-method">
+        <!-- many client editors like to PUT changes -->
+        <map:when test="PUT">
+          <map:mount uri-prefix="" src="{fallback:lenya/modules/webdav/sitemap.xmap}" check-reload="true" reload-method="synchron"/>
+        </map:when>
+      </map:select>
+      
+      <!-- Requests ending in a slash are redirected to the corresponding index.html page to mimic
+           standard web browser behaviour. -->
+      <!-- FIXME: this will trigger a HTTP redirect. Maybe it's more effective to do an internal redirect using
+           a cocoon:/ URI? An apache httpd server will not send a HTTP redirect when a directory is requested, but
+           serve the index.html file implicitly IIRC. -->
+      <map:match pattern="**/">
+        <map:redirect-to uri="{proxy:/{page-envelope:publication-id}/{1}/index.html}"/>
+      </map:match>
+
+    </map:pipeline>
+    
+
+    <map:pipeline type="caching">
+
+      <!-- RSS formatting. 
+           FIXME: this should be handled by an RSS feed module!
+      -->
+      <map:match pattern="**.rss">
+        <map:generate src="{resource-type:format-rss}"/>
+        <map:serialize type="xml" mime-type="application/rss+xml"/>
+      </map:match>
+
+      <!-- FIXME: either this should be moved into a metadata module, or at least we need to establish
+           some standard for magic extra suffixes and stick to it.
+           Here we use .html.meta, bxe uses .bxe.html.
+      -->
+      <map:match pattern="*/**.html.meta">
+        <map:generate type="lenyaMetaData" src="lenya-document:{page-envelope:document-uuid},area={1}"/>
+        <map:serialize type="xml"/>
+      </map:match>
+      <map:match pattern="**meta">
+        <map:generate type="lenyaMetaData" src="lenya-document:{request-param:uuid},lang={request-param:lang},pubid={request-param:pubid},area={request-param:area}"/>
+        <map:serialize type="xml"/>
+      </map:match>
+
+      <!-- {1:rendertype}/{2:pub}/{3:area}/{4:path} -->
+      <map:match pattern="document-content/*/*/*/**">
+        <map:act type="language-exists">
+          <map:generate src="{resource-type:format-xhtml}?rendertype={../1}"/>
+          <map:serialize type="xml"/>
+        </map:act>
+        <!-- if the action fails (i.e. the document does not exist), create a nice error page. -->
+        <map:generate type="serverpages" src="fallback://lenya/content/exception/document-does-not-exist.xsp"/>
+        <map:transform src="fallback://lenya/xslt/exception/document-does-not-exist.xsl">
+          <map:parameter name="requestUrl" value="{request:requestURI}"/>
+          <map:parameter name="contextPath" value="{request:contextPath}"/>
+          <map:parameter name="pub" value="{2}"/>
+          <map:parameter name="path" value="/{4}"/>
+          <map:parameter name="area" value="{3}"/>
+        </map:transform>
+        <map:transform type="i18n">
+          <map:parameter name="locale" value="{page-envelope:language}"/>
+        </map:transform>
+        <map:serialize type="xml"/>
+      </map:match>
+
+      <!-- 
+         This matcher aggregates the Lenya page: breadcrumbs, tabs, menu etc. and the actual document content.
+         /lenyabody-raw-{1:rendertype}/{2:publication-id}/{3:area}/{4:doctype}/{5:default-language}/{6:language}/{7:path} 
+      -->
+      <map:match pattern="lenyabody-raw-*/*/*/*/*/*/**">
+        <map:aggregate element="cmsbody">
+          <map:part src="cocoon://modules/sitetree/breadcrumb/{2}/{3}/{5}/{6}/{7}.xml"/>
+          <map:part src="cocoon://modules/sitetree/tabs/{2}/{3}/{5}/{6}/{7}.xml"/>
+          <map:part src="cocoon://modules/sitetree/menu/{2}/{3}/{5}/{6}/{7}.xml"/>
+          <map:part src="cocoon://modules/sitetree/search/{2}/{3}/{5}/{6}/{7}.xml"/>
+          <map:part src="cocoon://modules/languageselector/text-none/flagsize-13"/>
+          <map:part src="cocoon:/document-content/{1}/{2}/{3}/{7}"/>
+        </map:aggregate>
+        <map:serialize type="xml"/>
+      </map:match>
+
+      <!--
+        This match provides the XSLT to render a given doctype to XHTML
+        It checks for the existence of a doctype-specific one, and if none
+        exists, falls back to the default one.
+        /getDoctypeXSLT-{1:doctype}
+      -->
+      <map:match pattern="getDoctypeXSLT-*">
+        <map:select type="resource-exists">
+          <map:parameter name="prefix" value="fallback://"/>
+          <map:when test="xslt/page2xhtml-{1}.xsl">
+            <map:generate src="fallback://xslt/page2xhtml-{1}.xsl"/>
+          </map:when>
+          <map:otherwise>
+            <map:generate src="fallback://xslt/page2xhtml.xsl"/>
+          </map:otherwise>
+        </map:select>
+        <map:serialize type="xml"/>
+      </map:match>
+
+    </map:pipeline>
+
+    <!-- This is the pipeline that ultimately builds the page. -->
+    <map:pipeline type="noncaching">
+
+      <!-- 
+         This matcher takes the raw aggregated page content and applies SVG rendering and a doctype-specific
+         XSL transformation. It makes some meta information available to the XSLT, and demonstrates the use
+         of the LenyaMetaDataTransformer (see below).
+         /lenyabody-{1:rendertype}/{2:publication-id}/{3:area}/{4:doctype}/{5:path} 
+      -->
+      <map:match pattern="lenyabody-*/*/*/*/**">
+        <map:generate src="cocoon:/lenyabody-raw-{1}/{2}/{3}/{4}/{page-envelope:default-language}/{page-envelope:language}/{5}"/>
+        <map:transform src="fallback://lenya/modules/svg/xslt/image2svg.xsl"/>
+        <map:transform src="cocoon:/getDoctypeXSLT-{4}">
+          <map:parameter name="publication-id" value="{2}"/>
+          <map:parameter name="area" value="{3}"/>
+          <map:parameter name="uuid" value="{page-envelope:document-uuid}"/>
+          <map:parameter name="language" value="{page-envelope:document-language}"/>
+          <map:parameter name="document-path" value="{page-envelope:document-path}"/>
+          <map:parameter name="document-type" value="{4}"/>
+          <map:parameter name="lastPublishedUser" value="{access-control:user-name:{workflow:lastUser.publish}}"/>
+          <map:parameter name="lastPublishedDate" value="{workflow:lastDate.publish}"/>
+          <!-- Following is a show off to explain lenya.properties.xml -->
+          <map:parameter name="author" value="{properties:pubs.default.author}"/>
+          <map:parameter name="lenyaVersion" value="{properties:lenya.version}"/>
+          <map:parameter name="nodeName" value="{page-envelope:document-name}"/>
+        </map:transform>
+        <map:transform type="i18n">      
+          <map:parameter name="locale" value="{page-envelope:language}"/>
+        </map:transform>
+        
+        <!-- This is a demonstration of the generic meta data transformer
+          described in bug 39891.
+
+          1) define the ns: xmlns:meta="http://apache.org/lenya/meta/1.0/"
+          2) use it in above xsl like e.g.
+          <meta:value ns="http://purl.org/dc/elements/1.1/" element="date" uuid="{@uuid}"/>
+
+          Where @ns is the namespace for which you want to retrieve the @element for.
+          If there is more then one element registered then the transformer returns:
+          <value xmlns="http://apache.org/lenya/meta/1.0/" value="2005-09-11 12:44:05" element="date" />
+          <value xmlns="http://apache.org/lenya/meta/1.0/" value="2006-09-11 12:44:05" element="date" />
+
+          Otherwise it will return the value as characters.
+        -->
+        <map:transform type="metaData">
+          <map:parameter name='pubid' value='{page-envelope:publication-id}'/>
+          <map:parameter name='area' value='{page-envelope:area}'/>
+        </map:transform>
+        <map:transform type="uuid2url"/>
+        <map:serialize type="xml"/>
+      </map:match>
+
+    </map:pipeline>
+
+    <!-- This is the main entry point into the publication. This
+    pipeline uses the uriparametrizer to determine the doctype of this
+    request. It then aggregates the lenya menu (for the given area) and
+    the lenya body, the actual document. -->
+    <map:pipeline>
+
+      <!-- 
+         FIXME: this is a BXE-specific hack that should be handled by BXE's module sitemap. The publication 
+         should not be concerned with BXE-specific pre-processing of documents.
+      -->
+      <map:match pattern="**.bxe.html">
+        <map:generate src="cocoon:/lenyabody-edit/{page-envelope:publication-id}/{page-envelope:area}/{page-envelope:document-type}{page-envelope:document-path}"/>
+        <map:transform type="proxy"/>
+        <map:serialize type="xml"/>
+      </map:match>
+
+      <!-- 
+        Finally: this matcher handles requests for publication documents. 
+        /{1:area}/{2:document-path}.html
+      -->
+      <map:match pattern="*/**.html">
+        <!-- 
+          The default publication does not have content by default. 
+          This check provides the user with a dialog to import example content. 
+          It should be removed in production systems.
+        --> 
+
+        <map:select type="resource-exists">
+          <map:when test="lenya://lenya/pubs/{page-envelope:publication-id}/content/authoring/sitetree.xml"/>
+          <map:otherwise>
+            <map:redirect-to uri="{proxy:/{page-envelope:publication-id}/{1}/{2}.html}?lenya.usecase=export.importExampleContent"/>
+          </map:otherwise>
+        </map:select>
+
+        <!-- If the requested language version of the document exists, we set a last-modified header. -->
+        <map:act type="language-exists">
+          <map:act type="set-header">
+            <map:parameter name="Last-Modified" value="{date-iso8601-rfc822:{page-envelope:document-lastmodified}}" />
+          </map:act>
+        </map:act>
+            
+        <!-- 
+          HEAD requests shouldn't have all the xslt overhead, all the user wants is the HTTP header information.
+          So the actual content generation is bypassed.
+        -->
+        <map:select type="request-method">
+          <map:when test="HEAD">
+            <map:generate src="context://lenya/content/util/empty.xml" />
+            <map:serialize type="xhtml"/>
+          </map:when>
+        </map:select>          
+
+        <map:select type="parameter">
+          <map:parameter name="parameter-selector-test" value="{request-param:rendertype}"/>
+          <map:when test="edit">
+            <!-- put the bxe_xpath attribute into the page -->
+            <map:generate src="cocoon:/lenyabody-edit/{page-envelope:publication-id}/{page-envelope:area}/{page-envelope:document-type}{page-envelope:document-path}"/>
+          </map:when>
+          <map:otherwise>
+            <!-- sane page w/o hacks -->
+            <map:generate src="cocoon:/lenyabody-view/{page-envelope:publication-id}/{page-envelope:area}/{page-envelope:document-type}{page-envelope:document-path}"/>
+          </map:otherwise>
+        </map:select>
+
+        <!-- Menu generation -->
+        <map:select type="parameter">
+          <!-- you remember that {1} is the area, right? -->
+          <map:parameter name="parameter-selector-test" value="{1}"/>
+          <map:when test="live">
+            <!-- do nothing for live -->
+          </map:when>
+          <map:otherwise>
+            <!-- for all other areas, we want a GUI menu (handled by global-sitemap.xmap -->
+            <map:transform src="cocoon://lenya-page/{page-envelope:publication-id}/{1}/{2}.xml"/>
+            <!-- 
+                external broken link reporting (pretty much untested) 
+                TODO: External Links checking should be optional on a document by document basis.
+            -->
+            <!--
+            <map:transform src="fallback://lenya/xslt/authoring/addJavaScript.xsl">
+              <map:parameter name="scriptSRC" value="/modules/linkcheck/linkreporter.js"/>
+            </map:transform>
+            -->
+          </map:otherwise>
+        </map:select>
+
+        <!-- 
+            strip xhtml namespace prefix to ensure compatibility with non-XML conformant browsers
+            workaround to avoid empty script, style and textarea tags (firefox chokes on those)
+        -->
+        <map:transform src="fallback://lenya/xslt/util/strip_namespaces.xsl"/>
+
+        <!-- client cache expiration settings -->
+        <map:select type="parameter">
+          <map:parameter name="parameter-selector-test" value="{1}"/>
+          <!-- for live area: -->
+          <map:when test="live">
+            <!-- set cache expiration header according to resource type configuration (<expires/>) -->
+            <map:act type="language-exists">
+              <map:act type="set-header">
+                <map:parameter name="Expires" value="{date-iso8601-rfc822:{doc-info:{page-envelope:publication-id}:{page-envelope:area}:{page-envelope:document-uuid}:{page-envelope:document-language}:expires}}"/>
+              </map:act>
+            </map:act>
+          </map:when>
+          <!-- for other areas -->
+          <map:otherwise>
+            <!-- tell the browser not to cache stuff so that the user always sees up-to-date content -->
+            <map:act type="set-header">
+              <map:parameter name="Cache-Control" value="no-cache" />
+              <map:parameter name="Pragma" value="no-cache"/>
+            </map:act>
+          </map:otherwise> 
+        </map:select>
+
+        <!-- pretty-print output for easier debugging and for the benefit of new users 
+              NOTE: you may want to disable this in production for performance reasons,
+              but it's on by default in the default publication to make the generated code 
+              easier to work with for new users. -->
+        <map:transform src="fallback://lenya/modules/prettyprinting/xslt/xml2nicexml.xsl"/>
+
+        <!-- the proxy transformer handles proxy-related URL rewriting -->
+        <map:transform type="proxy"/>
+
+        <map:act type="language-exists">
+          <map:serialize type="xhtml"/>
+        </map:act>
+        <!-- 
+            When the requested document does not exist, we generate a nice error page.
+            Still, it's not what the user wants, so make sure we send a 404 "not found".
+        -->
+        <map:serialize type="xhtml" status-code="404"/>
+
+      </map:match>
+
+    </map:pipeline>
+
+    <!--
+       This pipeline handles all requests that do *not* end in ".html".
+    -->
+    <map:pipeline>
+      <map:match pattern="*/**">
+        <map:act type="language-exists">
+          <!--
+             A workaround for a byte-range issue with PDFs,
+             see http://marc.theaimsgroup.com/?l=xml-cocoon-dev&amp;m=112496255207733&amp;w=2 .
+             FIXME: still necessary?
+          -->
+          <map:match type="regexp" pattern="(.*\.)(pdf|PDF|Pdf)$"> 
+            <map:read src="lenya-document:{page-envelope:document-uuid},lang={page-envelope:document-language}{link:rev}" mime-type="application/pdf">
+              <map:parameter name="byte-ranges" value="false"/>
+            </map:read>
+          </map:match>      
+          <!-- Documents other than *.html are served as-is and do not require processing: -->
+          <map:read src="lenya-document:{page-envelope:document-uuid},lang={page-envelope:document-language}{link:rev}"
+            mime-type="{page-envelope:document-mime-type}"/>
+        </map:act>
+
+        <!-- 
+          If the action above fails (e.g. the document does not exist), call into the lenyabody pipeline.
+          It will generate a nice document-does-not-exist page for us.
+        -->
+        <map:generate src="cocoon:/lenyabody-view/{page-envelope:publication-id}/{page-envelope:area}/{page-envelope:document-type}{page-envelope:document-path}"/>
+        <map:select type="parameter">
+          <map:parameter name="parameter-selector-test" value="{1}"/>
+          <map:when test="live"/>
+          <map:otherwise>
+            <map:transform src="cocoon://lenya-page/{page-envelope:publication-id}/{1}/{2}?doctype={page-envelope:document-type}"/>
+          </map:otherwise>
+        </map:select>
+        <map:transform src="fallback://lenya/xslt/util/strip_namespaces.xsl"/>
+        <map:transform type="proxy"/>
+        <map:serialize type="xhtml" status-code="404"/>
+
+      </map:match>
+
+    </map:pipeline>
+
+
+  </map:pipelines>
+</map:sitemap>

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/work/lucene/index/archive/index/segments
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/work/lucene/index/archive/index/segments?rev=743041&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/work/lucene/index/archive/index/segments
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/work/lucene/index/authoring/index/_j.cfs
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/work/lucene/index/authoring/index/_j.cfs?rev=743041&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/work/lucene/index/authoring/index/_j.cfs
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/work/lucene/index/authoring/index/_z.cfs
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/work/lucene/index/authoring/index/_z.cfs?rev=743041&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/work/lucene/index/authoring/index/_z.cfs
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/work/lucene/index/authoring/index/deletable
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/work/lucene/index/authoring/index/deletable?rev=743041&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/work/lucene/index/authoring/index/deletable
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/work/lucene/index/authoring/index/segments
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/work/lucene/index/authoring/index/segments?rev=743041&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/work/lucene/index/authoring/index/segments
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/work/lucene/index/live/index/segments
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/work/lucene/index/live/index/segments?rev=743041&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/work/lucene/index/live/index/segments
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/work/lucene/index/trash/index/segments
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/work/lucene/index/trash/index/segments?rev=743041&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/work/lucene/index/trash/index/segments
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml-homepage.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml-homepage.xsl?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml-homepage.xsl (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml-homepage.xsl Tue Feb 10 18:22:23 2009
@@ -0,0 +1,25 @@
+<?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"
+>
+  
+<xsl:import href="fallback://xslt/page2xhtml.xsl"/>
+  
+</xsl:stylesheet>

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml-links.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml-links.xsl?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml-links.xsl (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml-links.xsl Tue Feb 10 18:22:23 2009
@@ -0,0 +1,25 @@
+<?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"
+>
+  
+<xsl:import href="fallback://xslt/page2xhtml.xsl"/>
+  
+</xsl:stylesheet>

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml-opendocument.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml-opendocument.xsl?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml-opendocument.xsl (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml-opendocument.xsl Tue Feb 10 18:22:23 2009
@@ -0,0 +1,31 @@
+<?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:page="http://apache.org/cocoon/lenya/cms-page/1.0"
+  xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0" 
+  xmlns:dc="http://purl.org/dc/elements/1.1/"
+  exclude-result-prefixes="page xhtml dc lenya"
+  >
+
+<xsl:import href="fallback://xslt/page2xhtml.xsl"/>
+  
+</xsl:stylesheet>

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml-search.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml-search.xsl?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml-search.xsl (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml-search.xsl Tue Feb 10 18:22:23 2009
@@ -0,0 +1,25 @@
+<?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"
+>
+  
+<xsl:import href="fallback://xslt/page2xhtml.xsl"/>
+
+</xsl:stylesheet>

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml-xhtml.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml-xhtml.xsl?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml-xhtml.xsl (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml-xhtml.xsl Tue Feb 10 18:22:23 2009
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+
+<xsl:stylesheet version="1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+>
+  
+<xsl:import href="fallback://xslt/page2xhtml.xsl"/>
+
+</xsl:stylesheet>

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml.xsl?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml.xsl (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/page2xhtml.xsl Tue Feb 10 18:22:23 2009
@@ -0,0 +1,153 @@
+<?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: page2xhtml.xsl 668103 2008-06-16 10:23:20Z 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: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/"
+  exclude-result-prefixes="xhtml lenya"
+  >
+  
+  <xsl:import href="context://lenya/xslt/util/string-functions.xsl"/>
+  
+  <xsl:param name="publication-id"/>
+  <xsl:param name="area"/>
+  <xsl:param name="uuid"/>
+  <xsl:param name="language"/>
+  
+  <!-- i.e. doctypes/xhtml-document -->
+  <xsl:param name="document-type"/>
+  
+  <xsl:param name="document-path"/>
+  
+  <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="root" select="concat('/', $publication-id, '/', $area)"/>
+  
+  <xsl:template match="cmsbody">
+    <html>
+      <head>
+        <link rel="neutron-introspection" type="application/neutron+xml"
+          href="{$root}{$document-path}.xml?lenya.module=neutron&amp;lenya.action=introspect"/>
+        <link rel="stylesheet" href="{$root}/css/page.css" type="text/css"/>
+        <link rel="SHORTCUT ICON" type="image/ico" href="/lenya/images/lenya.ico"/>
+        <!-- Load doctype-specific CSS -->
+        <xsl:if test="$document-type">
+          <!-- Looking into the pub e.g. {$yourPub}/resources/shared/css/{$document-type}.css -->
+          <link rel="stylesheet" href="{$root}/css/{$document-type}.css" type="text/css"/>
+          <xsl:copy-of select="xhtml:html/xhtml:head/*"/>
+        </xsl:if>
+        <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"/>
+      </head>
+      <body>
+        <div id="page">
+          <table width="100%" cellpadding="0" cellspacing="0" border="0">
+            <tr>
+              <td id="publication-title">
+                <xsl:variable name="pubTitle">
+                  <xsl:call-template name="capitalize">
+                    <xsl:with-param name="text" select="$publication-id"/>
+                  </xsl:call-template>
+                </xsl:variable>
+                <i18n:translate>
+                  <i18n:text>publication-title</i18n:text>
+                  <i18n:param><xsl:value-of select="$pubTitle"/></i18n:param>
+                  <i18n:param><xsl:value-of select="$author"/></i18n:param>
+                </i18n:translate>
+              </td>
+              <td id="project-logo"><img src="{$root}/images/project-logo.png" alt="project logo"/></td>
+            </tr>
+          </table>
+          <xsl:apply-templates select="xhtml:div[@id = 'tabs']"/>
+          <table width="100%" border="0" cellpadding="0" cellspacing="0">
+            <tr>
+              <td valign="top" style="width: 230px">
+                <xsl:apply-templates select="xhtml:div[@id = 'menu']"/>
+                <xsl:apply-templates select="xhtml:div[@id = 'languageselector']"/>
+              </td>
+              <td valign="top">
+                <div id="main">
+                  <xsl:apply-templates select="xhtml:div[@id = 'breadcrumb']"/>
+                  <xsl:apply-templates select="xhtml:div[@id = 'search']"/>
+                  <xsl:apply-templates select="xhtml:div[@id = 'body']"/>
+                  <xsl:if test="xhtml:html">
+                    <xsl:apply-templates select="xhtml:html/xhtml:body/*"/>
+                  </xsl:if>
+                  <xsl:call-template name="footer"/>
+                </div>
+              </td>
+            </tr>
+          </table>
+        </div>
+      </body>
+    </html>
+  </xsl:template>
+  
+  
+  <xsl:template match="xhtml:div[@id = 'breadcrumb']">
+    <xsl:if test="*">
+      <xsl:copy>
+        <xsl:apply-templates select="@*|node()"/>
+      </xsl:copy>
+    </xsl:if>
+  </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>
+  
+  
+</xsl:stylesheet> 

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/toDoc.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/toDoc.xsl?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/toDoc.xsl (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/toDoc.xsl Tue Feb 10 18:22:23 2009
@@ -0,0 +1,36 @@
+<?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: toDoc.xsl 473861 2006-11-12 03:51:14Z gregor $ -->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
+                xmlns:rc="http://apache.org/cocoon/lenya/rc/1.0" >
+
+<xsl:template match="rc:backup">
+        <xsl:apply-templates/> 
+</xsl:template>
+
+<xsl:template match="* | @*">
+ <xsl:copy>
+    <xsl:copy-of select="@*"/>
+    <xsl:apply-templates/>
+  </xsl:copy>
+</xsl:template>
+                                                                                                                                            
+</xsl:stylesheet>
+

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/upload-generic.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/upload-generic.xsl?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/upload-generic.xsl (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/upload-generic.xsl Tue Feb 10 18:22:23 2009
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml"
+  xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:uc="http://apache.org/cocoon/lenya/usecase/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+  
+  <xsl:param name="lenya.usecase"/>
+  
+  <xsl:output encoding="ISO-8859-1" indent="yes" version="1.0"/>
+  
+  <xsl:variable name="user-id" select="/uc:create/uc:user-id"/>
+  
+  <xsl:template match="/">
+    <page:page xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0">
+      <page:title><xsl:call-template name="title"/></page:title>
+      <page:body>
+        <xsl:apply-templates/>
+      </page:body>
+    </page:page>
+  </xsl:template>
+  
+  <xsl:template match="uc:confirm">
+    <div class="lenya-box">
+      <div class="lenya-box-title"><xsl:value-of select="uc:form-title"/></div>
+      <div class="lenya-box-body">
+
+          <xsl:apply-templates select="uc:error-messages"/>
+        
+
+          <xsl:call-template name="fields"/>
+        
+      </div>
+    </div>
+  </xsl:template>
+
+<xsl:template match="uc:error-messages">
+  <table class="lenya-table-noborder">
+    <xsl:if test="uc:message">
+       <tr>
+          <td class="lenya-entry-caption">Problem:</td>
+          <td><xsl:apply-templates select="uc:message"/></td>
+       </tr>
+    </xsl:if>
+  </table>
+</xsl:template>
+
+<xsl:template match="uc:message">
+  <span class="lenya-form-message-error"><xsl:value-of select="."/></span><br/>
+</xsl:template>
+
+
+<xsl:template name="title">Upload Document</xsl:template>
+
+<xsl:template name="fields"/>
+
+
+</xsl:stylesheet>

Added: lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/upload.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/upload.xsl?rev=743041&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/upload.xsl (added)
+++ lenya/trunk/org.apache.lenya.core.impl/src/test/resources/pubs/test/xslt/upload.xsl Tue Feb 10 18:22:23 2009
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml"
+  xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:uc="http://apache.org/cocoon/lenya/usecase/1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+  
+  <xsl:import href="upload-generic.xsl"/>
+  
+  <!--<xsl:template name="title">Import Article (SGML)</xsl:template>-->
+  
+<xsl:template name="fields">
+  <form method="POST" enctype="multipart/form-data" id="form-upload_document">
+
+    <input name="lenya.usecase" type="hidden" value="{$lenya.usecase}"/>
+    <input name="lenya.continuation" type="hidden" value="{uc:continuation}"/>
+
+    <!-- DEBUG ... -->
+    <!--<input name="cocoon-view" type="hidden" value="xml"/>-->
+
+    <table class="lenya-table-noborder">
+    <tr>
+      <td class="lenya-entry-caption">Upload Document</td>
+      <td>
+        <input class="lenya-form-element" name="upload-regulation" type="file"/>
+      </td>
+    </tr>
+
+    <tr>
+      <td/>
+      <td>
+        <input type="submit" name="submit" value="Upload"/>
+        <xsl:text> </xsl:text>
+        <input type="submit" value="Cancel" name="input-cancel"/>
+      </td>
+    </tr>
+    </table>
+  </form>
+</xsl:template>
+  
+</xsl:stylesheet>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.