cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ROSSEL Olivier <olivier.ros...@airbus.com>
Subject map:redirect.
Date Mon, 17 Jun 2002 16:56:25 GMT
I have this map:match:

<map:match pattern="*(*)**">
	<map:act type="resource-exists">
		<map:parameter name="url" value="docs{3}"/>
		<map:aggregate element="slash-edit" label="agg">
			<map:part src="editor/docs/{../2}-config.xml"/>
			<map:part
src="cocoon:/content-{../1}({../2},{../3})"/>
		</map:aggregate>
		<map:transform
src="editor/stylesheets/editor-page2html.xsl"/>
		<map:serialize type="xhtml"/>
	</map:act>
	<map:redirect-to uri="../new({2}){3}"/>
</map:match>

For URL such as:
see(bravo)/foobar

If the file foobar does not exist, we have a redirection to:
see(bravo)/../new(bravo)/foobar

That is to say that we redirect to:
new(bravo)/foobar

Which is handled by another pipeline correctly.

But if the first URL is:
see(bravo)/foo/bar

If the file bar does not exist, we have a redirection to:
see(bravo)/foo/../new(bravo)/foo/bar

That is to say that we redirect to:
see(bravo)/new(bravo)/foo/bar

which does not correspond to any URL pattern I use.

How can I get the part of the URL that is BEFORE the URL matched by the
current
(sub)sitemap. So I can recreate the redirection URL all from those basic
informations?

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message