You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Justin Fagnani-Bell <ju...@paraliansoftware.com> on 2003/11/07 00:42:31 UTC

Re: trying to generate the SRC attribute of element b ased on XML returned by generator.

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.

-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.

Re: trying to generate the SRC attribute of element b ased on XML returned by generator.

Posted by Andreas Hartmann <an...@apache.org>.
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org