Re: [xml-dev] The awesome power of Schematron: using user-defined XSLT functions in Schematron

From
Tony Graham <>
To
Date
2016-06-21T11:26:35Z
ID
<>
Thread
Re: [xml-dev] The awesome power of Schematron: using user-defined XSLT functions in Schematron
On 21/06/2016 07:10, Rick Jelliffe wrote:
> Slightly off-topic but i think a key to successful large scale
> Schematron is to not run the XSLT direct from the command line.

There's also some new(er) ways to speed up XSLT processing:

  - XSLT 3.0 defines xsl:function/@cache [1] for retaining the
    results of function calls.  saxon:memo-function [2] does
    the same if you have Saxon-PE or Saxon-EE: focheck [3] running
    inside oXygen uses that when parsing XSL-FO expressions as
    part of Schematron checking of XSL-FO files.

  - Compiled packages [4] in XSLT 3.0 *may* reduce the start-up
    time of the XSLT processor (though not of an underlying JVM).

Regards,


Tony Graham.
-- 
Senior Architect
XML Division
Antenna House, Inc.
----
Skerries, Ireland


[1] https://www.w3.org/TR/xslt-30/#memoization
[2] 
http://saxonica.com/documentation/index.html#!extensions/attributes/memo-function
[3] https://github.com/AntennaHouse/focheck
[4] https://www.w3.org/TR/xslt-30/#packages-and-modules