Subject: RE: [xsl] XSL Execution triggers? (ajg) From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Thu, 28 Mar 2002 09:20:10 -0000 |
> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL Execution triggers? (ajg), Alastair Growcott | Thread | re:[xsl] XSL Execution triggers? (a, cutlass |
RE: RE: [xsl] windows-like table so, Michael Kay | Date | RE: [xsl] Comparing two large style, Michael Kay |
Month |