Package xuriella
xuriella is an implementation of XSLT 1.0.
About This PackageCompiling stylesheets explicitly Profiling support Defining extension elements Functions useful in extensions Using XSLTXSLT stylesheets are invoked using the apply-stylesheet function, which can parse, compile, and apply XSLT stylesheets.Top-level parameters to the stylesheet can be specified using parameter instances created by make-parameter. Apply a stylesheet to a document. ... The class of top-level parameters to XSLT stylesheets. ... Creates a paramater. ... Compiling stylesheets explicitlyparse-stylesheet allows the compilation of XSLT stylesheets into objects ahead of time, so that apply-stylesheet only needs to invoke the pre-compiled sheet rather than having to parse and compile it first.Parse a stylesheet. ... The class of stylesheets that have been parsed and compiled. ... Profiling supportThe profiling facility records the run time of XSLT templates.Enables profiling. ... Disables profiling. ... Shows profiling output. ... Defining extension elementsXuriella can be extended in two ways:Custom XPath functions can be implemented using the extension mechanism in Plexippus. Custom XSLT elements can be implemented using the following macros. define-extension-group is used to establish a namespace for the extensions, which can then be activated using a namespace declaration and the extension-element-prefixes attribute in the stylesheet. Every individual extension element needs at least a definition using define-extension-parser. The parser will run at compilation time and return an XSLT instruction in a sexp syntax. If the extension can be implemented as a transformation into ordinary XSLT elements, the parser only needs to return that XSLT sexp. In addition, the sexp representation itself can be extended using define-extension-compiler. The extension compiler will be invoked while the stylesheet is compiled to return a function, usually a closure, that will be called by the stylesheet at run-time.
Defines a parser an extension element. ... Defines symbol as a name to be used in Xuriella's sexp
representation for XSLT. ... Functions useful in extensionsThe following functions can be used by extension parsers and compilers, to parse child nodes as instructions, or to compile such instructions, respectively.Parses the children of an XSLT instruction. ... Compiles an XSLT instruction. ... | Exported Symbol Index
|