Re: [xsl] xsltproc and file names

Subject: Re: [xsl] xsltproc and file names
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: Sun, 04 Nov 2007 15:37:43 +0000
>>>>> "Tommy" == Tommy Nordgren <tommy.nordgren@xxxxxxxxx> writes:

    Tommy> On 4 nov 2007, at 13.38, Abel Braaksma wrote:

    >>> How do I generate an output file name in an xsl stylesheet?
    >> You can't in XSLT 1.0. You can in XSLT 2.0, but then you will
    >> have to switch processors to Saxon 8.9 (open source for
    >> B-version), Gestalt (open source) or AltovaXML (free,
    >> proprietary).

    Tommy> 	This can't be right. The docbook chunked xsl
    Tommy> stylesheets generates filenames for html.

Well, actually it generates files.

But chunking requires an extra (non-XSLT) processor in XSLT 1.0.

Of course, you can generate a filename quite easily. But writing to
the file is another matter. You need an extension function, or XSLT 2.0.
Colin Adams
Preston Lancashire

Current Thread