This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

A little question...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]