You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ts...@apache.org on 2005/03/19 15:09:31 UTC
svn commit: r158240 -
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/blog/webdav.xmap
Author: tschlabach
Date: Sat Mar 19 06:09:30 2005
New Revision: 158240
URL: http://svn.apache.org/viewcvs?view=rev&rev=158240
Log:
Explicitly set XML serizalizer for SourceWritingTransformer (better be safe than sorry)
Modified:
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/blog/webdav.xmap
Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/blog/webdav.xmap
URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/blog/webdav.xmap?view=diff&r1=158239&r2=158240
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/blog/webdav.xmap (original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/blog/webdav.xmap Sat Mar 19 06:09:30 2005
@@ -88,22 +88,31 @@
</map:pipeline>
<map:pipeline type="noncaching">
+
<map:match pattern="entries/**.xml">
+
<map:select type="request-method">
+
<map:when test="PUT">
<map:generate type="stream"/>
<map:transform src="../../xslt/authoring/edit/addSourceTags.xsl">
<map:parameter name="source" value="content/authoring/entries/{1}.xml"/>
</map:transform>
- <map:transform type="write-source"/>
+ <map:transform type="write-source">
+ <map:parameter name="serializer" value="xml"/>
+ </map:transform>
<map:serialize type="xml" status-code="204"/> <!-- HTTP status code: 204 No Content -->
</map:when>
+
<map:otherwise> <!-- GET -->
<map:generate src="content/authoring/entries/{1}.xml"/>
<map:serialize type="xml"/>
</map:otherwise>
+
</map:select>
+
</map:match>
+
<map:handle-errors>
<map:select type="exception">
<map:when test="resourcenotfound">
@@ -125,6 +134,7 @@
</map:select>
<map:serialize type="html"/>
</map:handle-errors>
+
</map:pipeline>
</map:pipelines>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org