> The thing is I generate a stylesheet in B which is used in A (and in
> other pipelines):
> 
> <match pattern="B">
>   <map:generate src="resources/{filename}.xml"/>
>   <map:transform src="styles/Meta_output.xsl"/>
>   <map:serialize type="xml"/>
> </map:match>
> 
> Note that the output of B is a stylesheet (say output.xsl).
> 
> Then the first thing that comes to mind is using the Cocoon protocol
> to read this output.xsl as the src of the transformer in A:
> 
> <match pattern="A">
>   <map:generate src="resources/bla.xml"/>
>   <map:transform src="cocoon:/B"/>
>   <map:serialize type="html"/>
> </map:match>
> 
> But unfortunately this does not work. (I have posted messages on this
> matter a few days ago). The output of A is not what it should be at
> all. 
> 
> So I thought a workaround is to write the output.xsl to file and then
> read it in A. But then I had the issue of dependencies....
> 
> I hope i have been clear enough. By the way have you ever tried to use
> cocoon:/ as the src of a Transformer?

Ah. Much clearer now. No you shouldn't use the SWT to do this - you should be able 
to rely upon Cocoon's caching to worry about that for you.

Yes, you can access stylesheets using the cocoon: protocol. No I haven't done it yet, 
but I will need to do so soon.

So, when you say you tried it and it doesn't work, what doesn't work? What happens?

Also, what version of Cocoon are you using?

Regards, Upayavira




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to