You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christian Parpart <cp...@t-online.de> on 2000/12/15 01:55:09 UTC
>.XML's file name from XSL
Hi
How do I get the file name of the currently parsed
XML file by XSLT or XSP?
e.g. file.xml:
...
<last-modified/>
...
and transform.xsl:
...
<xsl:template match="last-modified"/>
<xsp:expr>new
File(<xsl:transformation-source/>).lastModified()</xsp:expr>
</xsl:template>
...
Here, <xsl:transformation-source/> should give "file.xml",
but the the template doesn't exist.
Regards,
Christian Parpart <ma...@surakware.com>
SurakWare
http://www.surakware.com
Re: >.XML's file name from XSL
Posted by Ulrich Mayring <ul...@denic.de>.
> Christian Parpart wrote:
>
> Hi
>
> How do I get the file name of the currently parsed
> XML file by XSLT or XSP?
request.getPathTranslated or something similar will contain the
filename.
Ulrich
--
Ulrich Mayring
DENIC eG, Systementwicklung