[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XSL Execution triggers? (ajg)
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|