> map:call transfers to a pipeline fragment defined in
> map:resources, but I don't think it will help you
> specifically now that I see what you are trying to
> do.
map:call does not work the same way as map:redirect-to does not work
because the steps before are not executed. Both must be the first and only
statements in a map:match.

> How about using an xslt transform after the
> SourceWritingTransformer with something that
> completely replaces all nodes with a cinclude?
>
> eg,
> <xsl:template match="/">
> <cinclude.../>
> </xsl:template>
>
> so you'd do
> ...
> <map:transform type="write-source"/>
> <map:transform src="that.xsl"/>
> <map:transform type="cinclude"/>
> ...
I know both xinclude (and cinclude) as well as xsl:document() should work,
the problem is that the file to include is a relative URL to the
Cocoon-context path. Something like work/test/index.html.
When using document() it expects it to be somehow in the same dir as the
stylesheet.
With xinclude one has to set the xml:base base URL otherwise it cannot
resolve a relatie URL. The question what is the base URL?? /cocoon/app or
cocoon://app or context:/ or http://hardcodedsvr/cocoon/app?
I'd like xinclude much more than document(). cinclude I don't know very well.


Peter

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

Reply via email to