cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <>
Subject Re: trying to generate the SRC attribute of <map:transform> element b ased on XML returned by generator.
Date Fri, 07 Nov 2003 09:59:23 GMT
Justin Fagnani-Bell wrote:

> Only actions can set sitemap parameters, which is how you would set the 
> src attribute. If you can write a simple action that will create your 
> URL and place it in the sitemap parameters then you should try that. I 
> don't know another way to do it. I've never used flowscript, but maybe 
> it's possible that way as well.

The problem here is that the action can't access the SAX stream.
You could factor out the code which produces the XML fragments that
are used for the URL from the generator. Then you can use this
code in the action as well as in the generator and compute
your URL.

-- Andreas

> -Justin
> On Thursday, November 6, 2003, at 09:15 AM, Igor Galperin wrote:
>     Hi!
>     I am trying to dynamically create the URL which will be set as a
>     value of "SRC" attribute of <map:transform> element.
>     The dynamic parts of the URL are some of the elements of XML returned
>     by generator.
>     May be somebody knows the way how to retrieve the elements of XML
>     returned by generator and then use them
>     to generate URL for transformer.
>     Help me please.
>     Thank you.
>     Igor.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message