Re: [xsl] Creating Multiple Files from One Input File (fwd)

Subject: Re: [xsl] Creating Multiple Files from One Input File (fwd)
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 05 Oct 2001 12:30:44 -0400
Betty,

Yes, it would make sense to import the stylesheet you already have into another that would do the file splitting.

This requirement is high enough on the list for XSLT 2.0, that the (now-shelved) XSLT 1.1 working draft specifies a syntax for it. Saxon implements this syntax.

A pure XSLT 1.0 alternative (I think someone mentioned) is to alter the stylesheet to just pick out a chunk and do that alone; then run the stylesheet multiple times. This could be parameterized from the command line or in a batch process. In this case also, the "chunking" stylesheet can import the one you have to do the whole thing, thus saving lots of work.

Michael mentions several processors with extensions: of course they're non-standard (including, strictly speaking, Saxon's in the XSLT 1.1 namespace). MSXML doesn't implement one (to my knowledge).

Betty, an implementation of this approach (relying on Saxon) appears in the Mulberry slideshow distribution: check out http://www.mulberrytech.com/slideshow.

Cheers,
Wendell

At 11:53 AM 10/5/01, Michael wrote:
Hi, Betty:

BH> The subject says it all.  I would like to create multiple files
BH> based on a single input files.  I haven't found anyway to do it is
BH> XSLT.  I can do it with Omnimark fairly easy but would prefer to
BH> do it in XSLT since a stylesheet has already been created for the
BH> entire files.

Several of the XSLT processors have extensions (saxon:output,
xt:document, xalan:write) to produce multiple output files...I guess
I'm not exactly sure what you're asking...


======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread