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

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

Subject: Re: Creating Multiple Files from One Input File (fwd)
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 05 Oct 2001 12:30:44 -0400
xslt create multiple files
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

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.