Subject: Re: [xsl] Managing Generation of Output Filenames From: "Jonathan Perret" <jonathan@xxxxxxxxxxxx> Date: Thu, 7 Feb 2002 16:37:02 +0100 |
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: [xsl] 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Managing Generation of Output, W. Eliot Kimber | Thread | Re: [xsl] Managing Generation of Ou, Jeni Tennison |
[xsl] How to create new xml element, Khalid | Date | RE: [xsl] How to create new xml ele, Ivan Rubin Ayma |
Month |