How can I use a Java variable in the document() funkction?
i.e.
<xsl:for-each select="document([the Java variable])">
...
</xsl:for-each>
I have tried it with the help of
<xsl:variable name="src"><xsp:expr>[the Java
variable]</xsp:expr></xsl:variable>
<xsl:for-each select="document([$src])">
...
</xsl:for-each>
but this doesn't work. <xsp:expr/> won't be processed and so the value of
$name is
the String "src". When I use <xsp:expr>src</xsp:expr> outside of
<xsl:variable/> it
works fine.
How can I solve this problem? Is there any workaround?
Thanks,
Martin
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>