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

RE: multiple output files within a recursive template

Subject: RE: multiple output files within a recursive template
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 27 Nov 2000 12:21:51 -0000
RE: multiple output files within a recursive template
> The task of this template is it to divide the source document into 2
> parts/files, the first 1500 characters and the rest. 
> Basically it works quite
> fine. The only problem is that Saxon 5.5.1 overwrites 
> existing files instead of
> appending the output to the existing file, so that only the 
> output of the last
> temaple match is written to the file(s).
> 
The best way of thinking about <saxon:output> is to regard it as putting a
node on the result tree, which the serializer then treats as an instruction
to serialize that subtree to a particular file.

For multiple output files you need to follow the same discipline as with any
other node on the result tree: you need to define a template that produces
out output file, and think about how to write this template to read the
input it needs to produce it. Just as with any other transformation, the
template rules need to be structured to match the required output, not to
match the input structure.

Mike Kay


 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.