Hi All!
I want to get the http request that will provide
me the URI of the file to generate (and transform).
E.g., the request that I should get will be
something like cocoon/test/xml.apache.org/cocoon/faq/faq-xslt.html
My pipeline is as following:
<map:match pattern="test/**">
<map:generate src=""http://{1}">http://{1}" type="html"/>
<map:transform
src="" type="xslt-saxon"/>
<map:serialize
type="xml"/>
</map:match>
Here is my problem:
The pipeline matches the given http request only
if the URI has more than one slash, e.g., the previous example will work file,
but if the http request is something like
cocoon/test/xml.apache.org/faq-xslt.html (only
one slash in the given URI that is matched by the wildcard) then I get the error
from Cocoon:
The requested URI "/cocoon/ub/xml.apache.org/faq-xslt.html" was not
found
But I can't also use only one asterisk in the
pattern match, because then I will be able to match only URI's that don't
contain slashes.
So please, can you tell me what is the right
pattern match for the URI with any number of slashes (zero, one or
more)?
Thank you very much for help.
Anna
|
- Re: Value-substitution question Anna Afonchenko
- Re: Value-substitution question Joerg Heinicke
- Re: Value-substitution question Anna Afonchenko
- Re: Value-substitution question Joerg Heinicke
- RE: Value-substitution question Geoff Howard
- Re: Value-substitution question Konstantin Piroumian
- Re: Value-substitution question Anna Afonchenko