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

RE: XSL 2.0 xsl:result-document and xsl:output

Subject: RE: XSL 2.0 xsl:result-document and xsl:output
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Sat, 1 Mar 2003 20:19:37 -0000
xsl message logging
> In the following draft version of XSL 2.0 
> http://www.w3.org/TR/xslt20/#element-output
> 
> there is this instruction:
> 
> <!-- Category: instruction -->
> <xsl:result-document
...
> and
> 
> <!-- Category: declaration -->
> <xsl:output
...
> 
> In my opinion there should be something that instructs the 
> processor to overwrite or concatenate the result to external 
> file.

If appending to a file were allowed, the results of the stylesheet would
depend on the order of execution of instructions. XSLT is designed to
avoid such dependencies.

There is however an instruction xsl:message. It is documented that the
order in which messages are output is implementation-defined.
Implementors can provide control over the destination of xsl:message,
allowing it to be used for the kind of logging applications you
describe. This can be done with XSLT 1.0 - it doesn't even need any XSLT
2.0 enhancements (though in the Saxon implementation, appending the
results of xsl:message to a file does require you to write some Java
code).

Michael 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.