You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by falcorn <pi...@interia.pl> on 2006/12/08 13:50:53 UTC
loading document in xsl dynamicly generated by cocoon
Hi.
I got this problem: I need to generate xml and load it to xsl as
xsl:variable.
Now I'm doing something like this:
<xsl:variable name="filesList"
select="doc('http://localhost:8888/Invoices/getDir/', $someValue))"/>
And I have coresponding match in sitemap.xmap:
<map:match pattern="getDir/**">
<map:generate type="directory" src="invoices/{1}"/>
<map:serialize type="xml"/>
</map:match>
Is any possibility to do something like this:
<xsl:variable name="filesList" select="doc('cocoon:/getDir/',
$someValue))"/>
I'm using Saxon by default.
Greetings
PIotr
--
View this message in context: http://www.nabble.com/loading-document-in-xsl-dynamicly-generated-by-cocoon-tf2780469.html#a7757172
Sent from the Cocoon - Dev mailing list archive at Nabble.com.
Re: loading document in xsl dynamicly generated by cocoon
Posted by Joerg Heinicke <jo...@gmx.de>.
(answered on users@c.a.o instead of dev@c.a.o)
Just curious: Wasn't this function once named document()? Or are you
using XSLT 2.0 and it has changed there?
Your code using cocoon pseudo protocol should work. What's your actual
problem?
Jörg
On 08.12.2006 13:50, falcorn wrote:
> Hi.
> I got this problem: I need to generate xml and load it to xsl as
> xsl:variable.
> Now I'm doing something like this:
> <xsl:variable name="filesList"
> select="doc('http://localhost:8888/Invoices/getDir/', $someValue))"/>
> And I have coresponding match in sitemap.xmap:
> <map:match pattern="getDir/**">
> <map:generate type="directory" src="invoices/{1}"/>
> <map:serialize type="xml"/>
> </map:match>
>
> Is any possibility to do something like this:
> <xsl:variable name="filesList" select="doc('cocoon:/getDir/',
> $someValue))"/>
>
> I'm using Saxon by default.
>
> Greetings
> PIotr
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org