You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2012/03/26 00:51:50 UTC
svn commit: r1305169 -
/lenya/contributions/2_0_X/modules/defaultstyle/sitemap.xmap
Author: andreas
Date: Sun Mar 25 22:51:50 2012
New Revision: 1305169
URL: http://svn.apache.org/viewvc?rev=1305169&view=rev
Log:
Fix handling of non-html resources.
Modified:
lenya/contributions/2_0_X/modules/defaultstyle/sitemap.xmap
Modified: lenya/contributions/2_0_X/modules/defaultstyle/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/defaultstyle/sitemap.xmap?rev=1305169&r1=1305168&r2=1305169&view=diff
==============================================================================
--- lenya/contributions/2_0_X/modules/defaultstyle/sitemap.xmap (original)
+++ lenya/contributions/2_0_X/modules/defaultstyle/sitemap.xmap Sun Mar 25 22:51:50 2012
@@ -206,15 +206,17 @@
For non-html documents:
If the requested extension equals the source extension, deliver the document directly.
-->
- <map:act type="language-exists">
- <map:select type="parameter">
- <map:parameter name="parameter-selector-test" value="{page-envelope:document-extension}"/>
- <map:when test="html"/>
- <map:when test="{../3}">
- <map:read src="lenya-document:{page-envelope:document-uuid},lang={page-envelope:document-language}{link:rev}"/>
- </map:when>
- </map:select>
- </map:act>
+ <map:match pattern="*/**.*">
+ <map:act type="language-exists">
+ <map:select type="parameter">
+ <map:parameter name="parameter-selector-test" value="{page-envelope:document-extension}"/>
+ <map:when test="html"/>
+ <map:when test="{../3}">
+ <map:read src="lenya-document:{page-envelope:document-uuid},lang={page-envelope:document-language}{link:rev}"/>
+ </map:when>
+ </map:select>
+ </map:act>
+ </map:match>
<map:generate src="cocoon:/{1}/{2}.pageContextInternal"/>
<map:transform src="xslt/includeDocument.xsl">
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org