Re: [xsl] outputting multiple documents based on a variable

Subject: Re: [xsl] outputting multiple documents based on a variable
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Wed, 15 May 2002 20:32:42 +0200
Hello James,

multiple output is not possible in pure XSLT 1.0, but have a look at extension functions (e.g. for XALAN:


James M. Jackson Sanborn schrieb:
Alright, I've looked through the archives, and can't find anything
that seems directly applicable, so I thought I might try asking:

I have a pile of records in one xml file-- (simplified example below):
    <title>book on animals</title>
    <title>book just on dogs</title>
    <title>book just on cats</title>

-- I want to use <xsl:document> to output multiple documents with a
single xsl-- these documents will be pages that list together books
that include a given subject (and are named _subject_.html-- eg.
dogs.html, cats.html, snakes.html, etc.)

In perl, I'd probably put the list of subjects for which I want to
create pages into an array, and then cycle through the values in the
array from start to finish, outputting a new document for each
value--  can I use <xsl:param> like this? is there another array-like
construct? or another simple solution I'm missing? or am I stuck
replicating the xsl file for each different value?

Thanks for any help on this.

XSL-List info and archive:

Current Thread