Hi --

Have you checked out the Cocoon wiki on input modules? The request input module should do what you want, eg {request:requestURI}?{request:queryString} would return the entire URL, including request params. If the Apache proxy messes with the headers, you can always set ProxyPreserveHost On.

Ref: [ http://wiki.apache.org/cocoon/InputModules ] (and no, it's not obsolete, although it says so at the top of the page).

Hope this helped,

/Petteri

On Apr 15, 2010 3:32pm, Florent André <[email protected]> wrote:
Hi all,



As I currently work on google's sitemap generation, I have to know the

host name and path of the request.



I have a look into inputs modules but I only see one that gave information

about "lenya document" (required to have an uuid).



In my use case, I don't have a lenya doc... Here comes the design main

lines :



- url finish with sitemap.xml (for example http://example.com/sitemap.xml

, http://www.example.com/toto/foo/sitemap.xml)



- publication's sitemap.XMAP intercept sitemap.xml ending and mount a

sitemap.xmap in seo module



- in seo module, I have

-- a match on sitemap.xml

-- a navigation module generator

-- a navigationToSitemap transformer



- into this transformer I have to know the entire url for generate a good

sitemap.xml, I think to do this throw a
value="{anInputModule:key}">



The base url retrive have to be "proxyied", have to be the same as the

client see...



Any help would be great appreciated,



Have a good day

++



---------------------------------------------------------------------

To unsubscribe, e-mail: [email protected]

For additional commands, e-mail: [email protected]



Reply via email to