[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: valu-of select="filename"

Subject: Re: valu-of select="filename"
From: Mike Brown <mike@xxxxxxxx>
Date: Mon, 30 Oct 2000 14:52:40 -0400 (EST)
xsl pull file name
Ronald wrote:
> We've got a xml file which we convert to asp using xslt.
> In this output we wanna use a "hitcounter". In order to do so we need a 
> unique name for out "outputted html" file.
> Since the input xml file name is unique, we want to use this name.
> In other words, is it possible to output the filename of the file you're 
> precocessing in the result tree?

No; the ultimate source of the source tree might or might not be a file.

I don't think it would be a bad idea for XSLT to offer this information in
the form of a system-property() function result, though. 

Best you can do for now is pass in the filename as an external parameter.
The mechanism for setting the parameter value is dependent on the XSLT
processor; check the docs. In the stylesheet at the top level (as a child
of xsl:stylesheet) you 'pull in' the parameter with <xsl:param .../>.

   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at         My XML/XSL resources:
webb.net in Denver, Colorado, USA           http://www.skew.org/xml/




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.