svn commit: r1002392 - /lenya/sandbox/modules/feed/branches/add-apache-feedparser/sitemap.xmap
[email protected] Tue, 28 Sep 2010 22:44:22 -0000
| Newsgroups | gmane.comp.cms.lenya.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: florent
Date: Tue Sep 28 22:44:22 2010
New Revision: 1002392
URL: http://svn.apache.org/viewvc?rev=1002392&view=rev
Log:
- solve a little bug in the sitemap
Modified:
lenya/sandbox/modules/feed/branches/add-apache-feedparser/sitemap.xmap
Modified: lenya/sandbox/modules/feed/branches/add-apache-feedparser/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/sandbox/modules/feed/branches/add-apache-feedparser/sitemap.xmap?rev=1002392&r1=1002391&r2=1002392&view=diff
==============================================================================
--- lenya/sandbox/modules/feed/branches/add-apache-feedparser/sitemap.xmap (original)
+++ lenya/sandbox/modules/feed/branches/add-apache-feedparser/sitemap.xmap Tue Sep 28 22:44:22 2010
@@ -29,20 +29,29 @@
<map:pipelines>
<map:pipeline>
+
+ <!-- url for test :
+ old implementation (cause bug explain bellow)
+ atom : http://localhost:8080/lenya/modules/feed/atom/http://alexharden.org/blog/atom.xml?format=xhtml
+ new implementation:
+ atom : http://localhost:8080/lenya/modules/feed/atom/http/alexharden.org/blog/atom.xml?format=xhtml
+ -->
- <!-- {1:sourceFormat}/{2:feedUrl} -->
- <map:match pattern="*/**">
+ <!-- match is separate into protocol and adress because the <map:match pattern="*/**" return for {2} http:/adress.com and not http://adress.com-->
+ <!-- {1:sourceFormat}/{2:protocol}/{3:adress} -->
+ <map:match pattern="*/*/**">
<map:generate src="fallback://lenya/modules/collection/samples/collection.xml"/>
<map:transform src="xslt/includeFeed.xsl">
- <map:parameter name="uri" value="{2}"/>
+ <map:parameter name="protocol" value="{2}"/>
+ <map:parameter name="uri" value="{3}"/>
</map:transform>
<map:transform type="include"/>
<map:transform src="xslt/{1}2{request-param:format}.xsl"/>
<map:transform type="unescape"/>
<map:transform src="xslt/addXhtmlNamespace.xsl"/>
- <map:transform type="i18n">
- <map:parameter name="locale" value="{page-envelope:document-language}"/>
- </map:transform>
+ <!-- <map:transform type="i18n"> -->
+ <!-- <map:parameter name="locale" value="{page-envelope:document-language}"/> -->
+ <!-- </map:transform> -->
<map:serialize type="xml"/>
</map:match>