You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ch...@apache.org on 2005/10/12 20:54:17 UTC
svn commit: r314996 - in /lenya/trunk/src: modules/xhtml/xslt/clean-xhtml.xsl
webapp/lenya/pubs/default/lenya/usecases/webdav/sitemap.xmap
Author: chestnut
Date: Wed Oct 12 11:54:08 2005
New Revision: 314996
URL: http://svn.apache.org/viewcvs?rev=314996&view=rev
Log:
Added ability to "clean" documents uploaded via webDAV PUT method.
Added:
lenya/trunk/src/modules/xhtml/xslt/clean-xhtml.xsl (with props)
Modified:
lenya/trunk/src/webapp/lenya/pubs/default/lenya/usecases/webdav/sitemap.xmap
Added: lenya/trunk/src/modules/xhtml/xslt/clean-xhtml.xsl
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/xhtml/xslt/clean-xhtml.xsl?rev=314996&view=auto
==============================================================================
--- lenya/trunk/src/modules/xhtml/xslt/clean-xhtml.xsl (added)
+++ lenya/trunk/src/modules/xhtml/xslt/clean-xhtml.xsl Wed Oct 12 11:54:08 2005
@@ -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.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:xhtml="http://www.w3.org/1999/xhtml"
+ >
+
+ <xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="xhtml:b">
+ <xhtml:strong>
+ <xsl:apply-templates />
+ </xhtml:strong>
+ </xsl:template>
+
+</xsl:stylesheet>
Propchange: lenya/trunk/src/modules/xhtml/xslt/clean-xhtml.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Modified: lenya/trunk/src/webapp/lenya/pubs/default/lenya/usecases/webdav/sitemap.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/pubs/default/lenya/usecases/webdav/sitemap.xmap?rev=314996&r1=314995&r2=314996&view=diff
==============================================================================
--- lenya/trunk/src/webapp/lenya/pubs/default/lenya/usecases/webdav/sitemap.xmap (original)
+++ lenya/trunk/src/webapp/lenya/pubs/default/lenya/usecases/webdav/sitemap.xmap Wed Oct 12 11:54:08 2005
@@ -102,6 +102,9 @@
<map:generate type="stream">
<map:parameter name="defaultContentType" value="text/xml" />
</map:generate>
+ <map:act type="resource-exists" src="{fallback://lenya/modules/{page-envelope:document-type}/xslt/clean-{page-envelope:document-type}.xsl}">
+ <map:transform src="{fallback://lenya/modules/{page-envelope:document-type}/xslt/clean-{page-envelope:document-type}.xsl}"/>
+ </map:act>
<map:transform src="fallback://lenya/xslt/util/strip_namespaces.xsl"/>
<map:serialize type="xml" />
</map:match>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org