cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <o...@vip.net.pl>
Subject global sitemap parameter bug part II
Date Wed, 02 Apr 2003 08:04:34 GMT
I was able to narrow down the bug that I have signalled yesterday concerning
global sitemap parameter

<map:match pattern="test1/*">
    <map:generate src="data/{1}/form.xml"/>
    <map:transform src="cocoon://{global:baseURL}/stylesheets/reportform2html.xsl">
        <map:parameter name="baseURL" value="/{global:baseURL}"/>
    </map:transform>
    <map:transform type="simpleform"/>
    <map:serialize/>
</map:match>
<map:match pattern="test2/*">
    <map:aggregate element="root">
        <map:part src="cocoon:/test1/{1}"/>
    </map:aggregate>
    <map:serialize/>
</map:match>

global parameter baseURL is defined in up level sitemap. When requesting
http://localhost:8080/something1/something2/test1/rep - the page gets rendered
properly. 

When requesting http://localhost:8080/something1/something2/test2/rep we have:
Unable to get transformer handler for
cocoon:///stylesheets/reportform2html.xsl so {global:baseURL} does not get
resolved.

Hope this helps to locate the problem in source code.
Regards
	ouzo
-- 
            __
         | /  \ |        Leszek Gawron            //  \\
        \_\\  //_/      ouzo@vip.net.pl          _\\()//_
         .'/()\'.     Phone: +48(600)341118     / //  \\ \
          \\  //  recursive: adj; see recursive  | \__/ |


Mime
View raw message