svn commit: r595171 - /lenya/trunk/src/pubs/default/sitemap.xmap

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Wed Nov 14 17:10:05 2007
New Revision: 595171

URL: http://svn.apache.org/viewvc?rev=595171&view=rev
Log:
Wrap setting of expiration header in language-exists action to avoid an exception

Modified:
    lenya/trunk/src/pubs/default/sitemap.xmap

Modified: lenya/trunk/src/pubs/default/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/src/pubs/default/sitemap.xmap?rev=595171&r1=595170&r2=595171&view=diff
==============================================================================
--- lenya/trunk/src/pubs/default/sitemap.xmap (original)
+++ lenya/trunk/src/pubs/default/sitemap.xmap Wed Nov 14 17:10:05 2007
@@ -348,8 +348,10 @@
           <!-- for live area: -->
           <map:when test="live">
             <!-- set cache expiration header according to resource type configuration (<expires/>) -->
-            <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 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 -->
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.