The xtpxlib-common component contains the following XSLT Stylesheets:

Module/PipelineDescription
expand-macro-definitions.xslThis is a driver for the xtlc:expand-macro-definitions template in xslmod/macrodefs.mod.xsl.
get-system-properties.xslGets all the XSLT available system properties (as returned by system-property()).
xslmod2xqmod-stub.xslThis stylesheet translates an XSLT module (in xtpxlib "style") into a stub for an XQuery Module. After this you still need to hand-edit it to make it all work.

5.1 XSLT (3.0): expand-macro-definitions.xsl

File: xsl/expand-macro-definitions.xsl

This is a driver for the xtlc:expand-macro-definitions template in xslmod/macrodefs.mod.xsl.

ParameterTypeRq?DefaultDescription
add-macrodef-commentsxs:boolean false()Whether to add a macro definition comment (summarizing all macro definitions) when a <*:macrodefs> element is processed.
expand-in-attributesxs:boolean true()Whether to expand the macro definitions in attributes.
expand-in-textxs:boolean true()Whether to expand the macro definitions in text nodes.
innode() .The node for which to expand the macro definitions. Must be an element or a document node.
macrodefsmap(xs:string, xs:string)* ()Any initial macro definitions.
use-local-macrodefsxs:boolean true()Check for <*:macrodefs> element as first child and process accordingly
use-standard-macrodefsxs:boolean true()Whether to use the standard macro definitions.

5.2 XSLT (2.0): get-system-properties.xsl

File: xsl/get-system-properties.xsl

Gets all the XSLT available system properties (as returned by system-property()).

5.3 XSLT (2.0): xslmod2xqmod-stub.xsl

File: xsl/xslmod2xqmod-stub.xsl

This stylesheet translates an XSLT module (in xtpxlib "style") into a stub for an XQuery Module. After this you still need to hand-edit it to make it all work.

See as an example href.mod.xsl. Large parts of this module were turned into XQuery by this stylesheet. The result (edited after this initial conversion) is in the xqmod directory of this component.