|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: valu-of select="filename"
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








