You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by so...@apache.org on 2007/09/19 09:10:03 UTC
svn commit: r577177 [12/12] - in /lenya/branches/revolution/1.3.x: ./
src/webapp/ src/webapp/WEB-INF/ src/webapp/lenya/pubs/default/
src/webapp/lenya/pubs/default12/ src/webapp/lenya/pubs/default12/config/ac/
src/webapp/lenya/pubs/default13/ src/webapp...
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/usecase-search.xmap
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/usecase-search.xmap?rev=577177&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/usecase-search.xmap (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/usecase-search.xmap Wed Sep 19 00:09:42 2007
@@ -0,0 +1,115 @@
+<?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: usecase-bxeng.xmap 180171 2005-06-05 23:16:13Z gregor $ -->
+
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+ <map:components>
+ <map:selectors>
+ <map:selector name="request-method" logger="sitemap.selector.request-method" src="org.apache.cocoon.selection.RequestMethodSelector"/>
+ </map:selectors>
+ </map:components>
+
+ <map:resources>
+ <map:resource name="finish">
+ <map:transform type="i18n">
+ <map:parameter name="locale" value="{page-envelope:document-language}"/>
+ </map:transform>
+ <map:transform src="../../xslt/util/strip_namespaces.xsl"/>
+ <map:select type="parameter">
+ <map:parameter name="statusCode" value="{statusCode}"/>
+ <map:when test="">
+ <map:serialize type="html" />
+ </map:when>
+ <map:otherwise>
+ <map:serialize type="html" status-code="{statusCode}"/>
+ </map:otherwise>
+ </map:select>
+ </map:resource>
+
+ <map:resource name="page-xhtml">
+ <map:transform src="xslt/page2xhtml.xsl">
+ <map:parameter name="root" value="/{page-envelope:publication-id}/live"/>
+ <map:parameter name="document-id" value="/index"/>
+ <map:parameter name="url" value="live/index.html"/>
+ <map:parameter name="language" value="{page-envelope:document-language}"/>
+ <map:parameter name="showLogin" value="1"/>
+ <map:parameter name="showFav" value="0"/>
+ <map:parameter name="querystring" value="{request:queryString}"/>
+ </map:transform>
+ </map:resource>
+ </map:resources>
+
+<!-- =========================== Pipelines ================================ -->
+ <map:pipelines>
+ <map:pipeline>
+ <map:match pattern="*/search-*/lucene.xml">
+ <map:generate type="serverpages" src="lenya/content/search/search-and-results.xsp" label="xml">
+ <map:parameter name="max-hits-per-page" value="10"/>
+ <map:parameter name="max-pages" value="10"/>
+ <map:parameter name="excerpt-offset" value="150"/>
+ <map:parameter name="number-of-pubs" value="1"/>
+ <map:parameter name="pub0-id" value="{page-envelope:publication-id}"/>
+ <map:parameter name="pub0-name" value="{page-envelope:publication}"/>
+ <map:parameter name="pub0-index-dir" value="./work/search/lucene/index/{2}/index"/>
+ <map:parameter name="pub0-search-fields" value="contents,title"/>
+ <map:parameter name="pub0-excerpt-dir" value="./content/{2}"/>
+ <map:parameter name="pub0-prefix" value=""/>
+ </map:generate>
+ <map:serialize type="xml"/>
+ </map:match>
+
+ <map:match pattern="search-page">
+ <map:aggregate element="search-results">
+ <map:part src="./config/publication.xconf"/>
+ <map:part src="cocoon:/{page-envelope:publication-id}/search-live/lucene.xml?{request:queryString}"/>
+ </map:aggregate>
+ <map:transform src="lenya/xslt/search/searchfixer.xsl">
+ <map:parameter name="area" value="live"/>
+ </map:transform>
+ <map:transform src="lenya/xslt/search/sort.xsl"/>
+ <map:act type="resource-exists" src="xslt/search/search-and-results-body.xsl">
+ <map:transform src="lenya/xslt/search/search-and-results-body.xsl">
+ <map:parameter name="contextprefix" value="{request:contextPath}"/>
+ <map:parameter name="publicationid" value="{page-envelope:publication-id}"/>
+ <map:parameter name="area" value="live"/>
+ </map:transform>
+ </map:act>
+ <map:transform src="lenya/xslt/search/search-and-results.xsl">
+ <map:parameter name="contextprefix" value="{request:contextPath}"/>
+ <map:parameter name="publicationid" value="{page-envelope:publication-id}"/>
+ <map:parameter name="area" value="live"/>
+ </map:transform>
+ <map:serialize type="xml"/>
+ </map:match>
+
+ <map:match type="usecase" pattern="search">
+ <map:aggregate element="cmsbody">
+ <map:part src="cocoon://navigation/{page-envelope:publication-id}/live/breadcrumb/index.xml"/>
+ <map:part src="cocoon://navigation/{page-envelope:publication-id}/live/tabs/index.xml"/>
+ <map:part src="cocoon://navigation/{page-envelope:publication-id}/live/menu/index.xml" prefix="xhtml"/>
+ <map:part src="cocoon://navigation/{page-envelope:publication-id}/live/search/index.xml"/>
+ <map:part src="cocoon:/search-page"/>
+ </map:aggregate>
+ <map:call resource="page-xhtml"/>
+ <map:call resource="finish"/>
+ </map:match>
+
+ </map:pipeline>
+ </map:pipelines>
+</map:sitemap>
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/htdocs_dump/live/index.html
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/htdocs_dump/live/index.html?rev=577177&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/htdocs_dump/live/index.html (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/htdocs_dump/live/index.html Wed Sep 19 00:09:42 2007
@@ -0,0 +1,82 @@
+<!--
+ 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.
+-->
+<html>
+<head>
+<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<link rel="stylesheet" href="/lenya/default/live/css/page.css" type="text/css">
+</head>
+<body>
+<div class="project-logo">
+<img src="/lenya/default/live/images/project-logo.png"></div>
+<div id="tabs">
+<span class="tab-selected"><a href="index.html">Home</a></span>
+</div>
+<table border="0" cellpadding="0" cellspacing="0">
+<tr>
+<td valign="top">
+<div id="menu">
+<div class="menublock-selected-1">
+<div class="menuitem-selected-1">Home</div>
+</div>
+</div>
+</td><td valign="top">
+<div id="main">
+<div id="breadcrumb">
+ »
+Home</div>
+<div id="body">
+<h1>
+<h1>DC Title</h1>
+</h1>
+<p class="simple">Hello and welcome to the Lenya default publication!</p>
+<p class="simple">Apache Lenya is a Java Open-Source Content Management System
+ based on open standards such as XML and XSLT and the Apache
+ Software Stack, in particular the XML publishing framework Apache
+ Cocoon.</p>
+<p class="simple">For an overview of the concepts and the terminology used in
+ Apache Lenya please see the <a href="concepts.html">Concepts
+ section</a>. To see what you can do with Apache Lenya please
+ refer to the <a href="features.html">Features
+ section</a>.</p>
+<p class="simple">If you'd like to get a quick introduction on how to use Apache
+ Lenya CMS please go through the <a href="tutorial.html">tutorial</a>.</p>
+<p class="simple">The purpose of this publication is</p>
+<ul>
+
+<li>to show beginners the basic functionality of the Apache
+ Lenya CMS,</li>
+
+
+<li>to provide an "out of the box" publication that can be
+ easily adapted and used,</li>
+
+
+<li>and to provide a basis for reference implementations of new
+ concepts and best practices.</li>
+
+
+</ul>
+<p class="simple">This publication does not go to the limit of what's possible
+ with Apache Lenya CMS, there are no fancy bells and whistles to
+ confuse you, this publication simply contains everything you need
+ to get started.</p>
+</div>
+</div>
+</td>
+</tr>
+</table>
+</body>
+</html>
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.f1
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.f1?rev=577177&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.f1 (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.f1 Wed Sep 19 00:09:42 2007
@@ -0,0 +1 @@
+m
\ No newline at end of file
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.f2
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.f2?rev=577177&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.f2
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.f3
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.f3?rev=577177&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.f3 (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.f3 Wed Sep 19 00:09:42 2007
@@ -0,0 +1 @@
+|
\ No newline at end of file
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.f4
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.f4?rev=577177&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.f4 (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.f4 Wed Sep 19 00:09:42 2007
@@ -0,0 +1 @@
+|
\ No newline at end of file
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.fdt
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.fdt?rev=577177&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.fdt
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.fdx
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.fdx?rev=577177&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.fdx
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.fnm
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.fnm?rev=577177&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.fnm
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.frq
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.frq?rev=577177&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.frq
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.prx
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.prx?rev=577177&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.prx
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.tii
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.tii?rev=577177&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.tii
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.tis
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.tis?rev=577177&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/_1.tis
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/deletable
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/deletable?rev=577177&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/deletable
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/segments
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/segments?rev=577177&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/authoring/index/segments
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.f1
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.f1?rev=577177&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.f1 (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.f1 Wed Sep 19 00:09:42 2007
@@ -0,0 +1 @@
+m
\ No newline at end of file
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.f2
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.f2?rev=577177&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.f2
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.f3
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.f3?rev=577177&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.f3 (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.f3 Wed Sep 19 00:09:42 2007
@@ -0,0 +1 @@
+|
\ No newline at end of file
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.f4
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.f4?rev=577177&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.f4 (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.f4 Wed Sep 19 00:09:42 2007
@@ -0,0 +1 @@
+|
\ No newline at end of file
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.fdt
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.fdt?rev=577177&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.fdt
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.fdx
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.fdx?rev=577177&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.fdx
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.fnm
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.fnm?rev=577177&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.fnm
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.frq
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.frq?rev=577177&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.frq
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.prx
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.prx?rev=577177&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.prx
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.tii
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.tii?rev=577177&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.tii
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.tis
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.tis?rev=577177&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/_1.tis
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/deletable
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/deletable?rev=577177&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/deletable
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/segments
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/segments?rev=577177&view=auto
==============================================================================
Binary file - no diff available.
Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/work/search/lucene/index/live/index/segments
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/homepage2xhtml.xsl
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/homepage2xhtml.xsl?rev=577177&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/homepage2xhtml.xsl (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/homepage2xhtml.xsl Wed Sep 19 00:09:42 2007
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!--
+ 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.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+>
+
+<xsl:import href="xhtml2xhtml.xsl"/>
+
+</xsl:stylesheet>
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/lenya-header.xsl
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/lenya-header.xsl?rev=577177&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/lenya-header.xsl (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/lenya-header.xsl Wed Sep 19 00:09:42 2007
@@ -0,0 +1,42 @@
+<?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: lenya-header.xsl 413285 2006-06-10 11:10:23Z thorsten $ -->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns="http://www.w3.org/1999/xhtml"
+ exclude-result-prefixes="dc"
+ >
+
+<xsl:template match="dc:*[not(node())]"/>
+
+<xsl:template match="dc:title">
+ <h1>
+ <xsl:if test="$rendertype = 'edit'">
+ <xsl:attribute name="bxe_xpath">/html/lenya:meta/dc:title</xsl:attribute>
+ </xsl:if>
+ <xsl:apply-templates/>
+ </h1>
+</xsl:template>
+
+<xsl:template match="dc:description">
+ <p class="abstract"><xsl:apply-templates/></p>
+</xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/links2xhtml.xsl
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/links2xhtml.xsl?rev=577177&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/links2xhtml.xsl (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/links2xhtml.xsl Wed Sep 19 00:09:42 2007
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:default="http://apache.org/lenya/pubs/default/1.0"
+ xmlns="http://www.w3.org/1999/xhtml"
+>
+
+<xsl:template match="default:links">
+<div id="body">
+<h1><xsl:value-of select="default:title"/></h1>
+<ul>
+<xsl:apply-templates select="default:link"/>
+</ul>
+</div>
+</xsl:template>
+
+<xsl:template match="default:link">
+<li>
+<a href="{@href}">
+<xsl:value-of select="."/>
+</a>
+</li>
+</xsl:template>
+
+</xsl:stylesheet>
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/page2xhtml-homepage.xsl
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/page2xhtml-homepage.xsl?rev=577177&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/page2xhtml-homepage.xsl (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/page2xhtml-homepage.xsl Wed Sep 19 00:09:42 2007
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!--
+ 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.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+>
+
+<xsl:import href="page2xhtml.xsl"/>
+
+</xsl:stylesheet>
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/page2xhtml-links.xsl
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/page2xhtml-links.xsl?rev=577177&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/page2xhtml-links.xsl (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/page2xhtml-links.xsl Wed Sep 19 00:09:42 2007
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!--
+ 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.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+>
+
+<xsl:import href="page2xhtml.xsl"/>
+
+</xsl:stylesheet>
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/page2xhtml-xhtml.xsl
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/page2xhtml-xhtml.xsl?rev=577177&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/page2xhtml-xhtml.xsl (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/page2xhtml-xhtml.xsl Wed Sep 19 00:09:42 2007
@@ -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="page2xhtml.xsl"/>
+
+</xsl:stylesheet>
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/page2xhtml.xsl
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/page2xhtml.xsl?rev=577177&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/page2xhtml.xsl (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/page2xhtml.xsl Wed Sep 19 00:09:42 2007
@@ -0,0 +1,142 @@
+<?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 413547 2006-06-11 23:24:48Z solprovider $ -->
+
+<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/"
+ xmlns:dcterms="http://purl.org/dc/terms/"
+ xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+ exclude-result-prefixes="page xhtml"
+ >
+
+
+<!-- {context-prefix}/{publication-id}/{area} -->
+<xsl:param name="root"/>
+
+<xsl:param name="document-id"/>
+
+<!-- i.e. doctypes/xhtml-document -->
+<xsl:param name="document-type"/>
+
+<!-- The rquest url i.e. /lenya/doctypes/xhtml-document_en.html -->
+<xsl:param name="url"/>
+
+<xsl:param name="language"/>
+<xsl:param name="contenttype"/>
+
+<xsl:template match="cmsbody">
+ <html>
+ <head>
+ <link rel="stylesheet" href="{$root}/css/page.css" type="text/css"/>
+ <meta content="Apache Lenya" name="generator"/>
+ <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
+ <title><xsl:value-of select="//lenya:meta/dc:title"/></title>
+ </head>
+ <body>
+ <div id="page">
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td id="publication-title">
+ <xsl:choose>
+ <xsl:when test="$language = 'de'">
+ Willkommen zur Default Publikation!
+ </xsl:when>
+ <xsl:otherwise>
+ Welcome to the Default Publication!
+ </xsl:otherwise>
+ </xsl:choose>
+ </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">
+ <xsl:apply-templates select="xhtml:div[@id = 'menu']"/>
+ </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:html/xhtml:div[@id = 'body']"/>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" valign="top">
+ <div id="footer">
+ <xsl:apply-templates select="lenya:meta/dcterms:modified"/>
+ <xsl:apply-templates select="lenya:meta/dc:publisher"/>
+ </div>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </body>
+ </html>
+</xsl:template>
+
+<xsl:template match="dcterms:modified">
+ <xsl:variable name="date"><xsl:value-of select="."/></xsl:variable>
+ <i18n:text>last_published</i18n:text>:
+ <xsl:if test="$date!=''">
+ <i18n:date-time src-pattern="yyyy-MM-dd HH:mm:ss" pattern="EEE, d MMM yyyy HH:mm:ss z" value="{$date}"/>
+ </xsl:if>
+</xsl:template>
+
+<xsl:template match="dc:publisher">
+ <xsl:variable name="user"><xsl:value-of select="."/></xsl:variable>
+ <xsl:variable name="user-id"><xsl:value-of select="substring-before($user,'|')"/></xsl:variable>
+ <xsl:variable name="rest"><xsl:value-of select="substring-after($user,'|')"/></xsl:variable>
+ <xsl:variable name="user-name"><xsl:value-of select="substring-before($rest,'|')"/></xsl:variable>
+ <xsl:variable name="user-email"><xsl:value-of select="substring-after($rest,'|')"/></xsl:variable>
+
+ <xsl:if test="$user != ''">
+ <xsl:choose>
+ <xsl:when test="$user-email != ''">
+ / <a>
+ <xsl:attribute name="href"><xsl:value-of select="concat('mailto:',$user-email)"/></xsl:attribute>
+ <xsl:value-of select="$user-name"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ / <xsl:value-of select="$user-name"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:if>
+</xsl:template>
+
+<xsl:template match="@*|node()" priority="-1">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+</xsl:template>
+
+<!-- 1.3 Nav Module Path Correction -->
+<xsl:template match="//xhtml:div[@id != 'body']//*/@href"><xsl:choose>
+<xsl:when test="$contenttype='flat'"><xsl:attribute name="href"><xsl:value-of select="$root"/><xsl:value-of select="."/></xsl:attribute></xsl:when>
+<xsl:otherwise><xsl:copy/></xsl:otherwise>
+</xsl:choose></xsl:template>
+
+</xsl:stylesheet>
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/toDoc.xsl
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/toDoc.xsl?rev=577177&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/toDoc.xsl (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/toDoc.xsl Wed Sep 19 00:09:42 2007
@@ -0,0 +1,35 @@
+<?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: toDoc.xsl 413285 2006-06-10 11:10:23Z thorsten $ -->
+
+<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/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/upload-generic.xsl
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/upload-generic.xsl?rev=577177&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/upload-generic.xsl (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/upload-generic.xsl Wed Sep 19 00:09:42 2007
@@ -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/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/upload.xsl
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/upload.xsl?rev=577177&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/upload.xsl (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/upload.xsl Wed Sep 19 00:09:42 2007
@@ -0,0 +1,37 @@
+<?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="fields">
+ <form method="POST" enctype="multipart/form-data">
+
+ <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"/>
+ </td>
+ </tr>
+ </table>
+ </form>
+</xsl:template>
+
+</xsl:stylesheet>
Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/xhtml2xhtml.xsl
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/xhtml2xhtml.xsl?rev=577177&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/xhtml2xhtml.xsl (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/pubs/default13/xslt/xhtml2xhtml.xsl Wed Sep 19 00:09:42 2007
@@ -0,0 +1,149 @@
+<?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: xhtml2xhtml.xsl 201777 2005-06-25 18:25:30Z gregor $ -->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:xhtml="http://www.w3.org/1999/xhtml"
+ xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ exclude-result-prefixes="xhtml lenya"
+ >
+
+<xsl:param name="rendertype" select="''"/>
+<xsl:param name="nodeid"/>
+
+<xsl:template match="/xhtml:html">
+ <xsl:copy-of select="lenya:meta"/>
+ <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>
+</xsl:template>
+
+<xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+</xsl:template>
+
+ <xsl:template name="substring-after-last">
+ <xsl:param name="input"/>
+ <xsl:param name="substr"/>
+ <xsl:variable name="temp" select="substring-after($input, $substr)"/>
+ <xsl:choose>
+ <xsl:when test="$substr and contains($temp, $substr)">
+ <xsl:call-template name="substring-after-last">
+ <xsl:with-param name="input" select="$temp"/>
+ <xsl:with-param name="susbtr" select="$substr"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$temp"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="lenya:asset">
+ <xsl:variable name="extent">
+ <xsl:value-of select="@size"/>
+ </xsl:variable>
+ <xsl:variable name="suffix">
+ <xsl:call-template name="substring-after-last">
+ <xsl:with-param name="input" select="@src"/>
+ <xsl:with-param name="substr">.</xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <div class="asset">
+ <xsl:text> </xsl:text>
+ <a href="{$nodeid}/{@src}" title="{text()}">
+ <xsl:value-of select="text()"/>
+ </a>
+ (<xsl:value-of select="number($extent)"/>KB)
+ </div>
+ </xsl:template>
+
+ <!-- this template converts the object tag to img (for compatiblity with older browsers
+ for more, see http://www.xml.com/pub/a/2003/07/02/dive.html -->
+
+ <!-- TODO: Extract all object templates into a separate xslt,
+ since we have dublicated code in content2edit.xsl in kupu /roku -->
+ <xsl:template name="object2img">
+ <img border="0">
+ <xsl:attribute name="src">
+ <xsl:choose>
+ <xsl:when test="not(starts-with(@data, '/'))">
+ <xsl:value-of select="$nodeid"/>/<xsl:value-of select="@data"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@data"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+
+ <xsl:attribute name="alt">
+ <!-- the overwritten title (stored in @name) has precedence over dc:title -->
+ <xsl:choose>
+ <xsl:when test="@name != ''">
+ <xsl:value-of select="@name"/>
+ </xsl:when>
+ <xsl:when test="@title != ''">
+ <xsl:value-of select="@title"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="dc:metadata/dc:title"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <xsl:if test="string(@height)">
+ <xsl:attribute name="height">
+ <xsl:value-of select="@height"/>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:if test="string(@width)">
+ <xsl:attribute name="width">
+ <xsl:value-of select="@width"/>
+ </xsl:attribute>
+ </xsl:if>
+ </img>
+ </xsl:template>
+
+ <xsl:template match="xhtml:object" priority="3">
+ <xsl:choose>
+ <xsl:when test="@href != ''">
+ <a href="{@href}">
+ <xsl:call-template name="object2img"/>
+ </a>
+ </xsl:when>
+ <xsl:when test="@type = 'application/x-shockwave-flash'">
+ <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
+ <param name="movie" value="{$nodeid}/{@data}"/>
+ </object>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="object2img"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="dc:metadata"/>
+
+</xsl:stylesheet>
Modified: lenya/branches/revolution/1.3.x/src/webapp/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/sitemap.xmap?rev=577177&r1=577176&r2=577177&view=diff
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/sitemap.xmap (original)
+++ lenya/branches/revolution/1.3.x/src/webapp/sitemap.xmap Wed Sep 19 00:09:42 2007
@@ -137,6 +137,8 @@
src="org.apache.lenya.cms.content.flat.CreateRevisionTransformer"/>
<map:transformer name="resource" logger="sitemap.transformer.resource"
src="org.apache.lenya.cms.content.ResourceTransformer"/>
+ <map:transformer name="virtual" logger="sitemap.transformer.virtual"
+ src="org.apache.lenya.cms.cocoon.transformation.VirtualTransformer"/>
<!-- Lenya 1.3 END -->
</map:transformers>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org