upayavira 2004/05/07 02:52:26
Modified: src/webapp/samples/modules sitemap.xmap Log: Making the baselink module sample do something useful. As suggested by Jorg Heymans. Revision Changes Path 1.11 +6 -4 cocoon-2.1/src/webapp/samples/modules/sitemap.xmap Index: sitemap.xmap =================================================================== RCS file: /home/cvs/cocoon-2.1/src/webapp/samples/modules/sitemap.xmap,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- sitemap.xmap 6 May 2004 11:09:42 -0000 1.10 +++ sitemap.xmap 7 May 2004 09:52:26 -0000 1.11 @@ -101,14 +101,16 @@ <map:match pattern="content/baselink.xml"> <map:generate type="jx" src="properties.xml"> - <map:parameter name="(anything)" value="{baselink:}"/> + <map:parameter name="sitemapAsBase" value="{baselink:SitemapBaseLink}"/> + <map:parameter name="requestAsBase" value="{baselink:RequestBaseLink}"/> </map:generate> <map:transform src="properties2html.xsl"> <map:parameter name="title" value="BaseLink Input Module (BaseLinkModule)"/> <map:parameter name="description" value="Returns a relative path (../, - ../../, etc) linking to the base of the current request URI. In - this demonstration, the request URI is {0} (an internal request not + ../../, etc) linking to either the base of the current request URI or the base + of the sitemap. + In this demonstration, the request URI is {0} (an internal request not equivalent to what the user sees)"/> </map:transform> <map:serialize />