This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
A little question...
- From: Alessio Mazzieri <mazzieri at umbrars dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 05 Dec 2001 16:49:29 +0100
- Subject: [xsl] A little question...
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi to all,
I need to know the filename of the xml being processed by the xslt
stylesheet, something like this...
The XML doc: (test.xml)
?xml version="1.0"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet href="filename.xsl" type="text/xsl"?>
.
.
.
The XSLT stylesheet (filename.xsl)
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/">
<xsl:variable name="self">
<?SOME_INSTRUCTION_TO_OBTAIN_XML_FILENAME?>
</xsl:variable>
The original XML doc: <xsl:value-of select="$self"/>
</xsl:template>
</xsl:stylesheet>
The desidered output:
The original XML doc: test.xml
Some ideas?
Thanks.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list