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

Re: Managing Generation of Output Filenames

Subject: Re: Managing Generation of Output Filenames
From: "Jonathan Perret" <jonathan@xxxxxxxxxxxx>
Date: Thu, 7 Feb 2002 16:37:02 +0100
xsl output filename
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


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.