[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Managing Generation of Output Filenames
I may be completely missing the point, but can't you do something like : <xsl:template name="make-filename"> (insert business logic here, returning a string) </xsl:template> When you later need a filename, generate it to a variable : <xsl:variable name="filename"> <xsl:call-template name="make-filename" /> </xsl:variable> Then when you need an attribute : <sampleoutputelement sampleattribute="{$filename}" /> When you need an href for xsl:document : <xsl:document href="{$filename}" /> I completely omitted the parameters you will want to pass to the business-logic template, but this shouldn't be much of a problem, hopefully. Sorry if I didn't understand your problem... Hope this helps, --Jonathan ----- Original Message ----- From: "W. Eliot Kimber" <eliot@xxxxxxxxxx> To: "xsl list" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Thursday, February 07, 2002 4:21 PM Subject: Managing Generation of Output Filenames > We have an HTML output script that is creating lots of output files > where the filenames we use for the generated files have to be both > meaningful and reflect some pre-defined business rules for how the names > are constructed. 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
|