This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: create multiple documents
- To: "Douklias, Mike JSIMS_M" <douklias at jwfc dot jfcom dot mil>
- Subject: Re: [xsl] create multiple documents
- From: Jeni Tennison <jeni at jenitennison dot com>
- Date: Thu, 18 Oct 2001 16:09:04 +0100
- CC: "'XSL-List at lists dot mulberrytech dot com'" <XSL-List at lists dot mulberrytech dot com>
- Organization: Jeni Tennison Consulting Ltd
- References: <5B57189920E7D41190B500606D21068601153A0F@mailsvr.jfcom.mil>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi Mike,
> My question is if I can create multiple XML/html files through 1
> XSL. Like use multiple apply-templates with each one to create a new
> document.
There is no standard way to create multiple outputs from a single
transformation using XSLT 1.0. The XSLT 1.1 WD defined a standard way
of generating multiple outputs using xsl:document, but XSLT 1.1 has
been put on hold. I imagine that you'll see this functionality in XSLT
2.0 instead.
However, several XSLT processors have an extension element that allows
you to do it (e.g. Xalan's redirect extensions, saxon:output/document,
xt:document). Alternatively, Saxon and jd.xslt both implement the XSLT
1.1 WD, so you can use xsl:document with them. Or if you're using
MSXML, then you should be able to write an extension method that saves
XML to disk (I think Chris Bayes was working on this - Chris?).
The bottom line is that you should look at the documentation of the
XSLT processor you're using to find out if and how you can generate
multiple outputs.
I hope that helps,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list