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

RE: XSL Execution triggers? (ajg)

Subject: RE: XSL Execution triggers? (ajg)
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 28 Mar 2002 09:20:10 -0000
xsl execution
> is there any PI in the XSL spec that will trigger execution
> of a script
> or process on an XML file. Such a thing could be used for programatic
> pre- or post-processing on the XML file. It would also be useful for
> logging or triggering notifications when a stylesheet is applied to an
> XML file.

Look up "extension functions" in the spec, or in the documentation for your
processor. They allow you to write functions that you can call from within
an XPath expression, in languages such as JavaScript or Java depending on
your processor.

But pre- or post-processing are sensible alternatives, and are best
controlled not from within the stylesheet, but from the script that invokes
it. In the Java world, the elegant approach is to write a SAX pipeline in
which your pre- and post-processing operations are written as SAX filters.
In the Microsoft world, it's more common to use DOM programming.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx


 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.