xslt
io · scripts/io/xslt.m
XSLT Transform an XML document with an XSLT stylesheet (MATLAB compatible).
RESULT = XSLT (SOURCE, STYLE, DEST)
[RESULT, TRANSFORMER] = XSLT (..., 'XMLEngine', 'jaxp')
SOURCE is an XML file name, URL, or an org.w3c.dom.Node (for example the
Document from XMLREAD). STYLE is the XSLT stylesheet file name or URL.
DEST is the output file name, or '-tostring' to return the output text.
When DEST is a file name, RESULT is a file:/// URI of the absolute
destination path (MATLAB R2026a); with '-tostring' (or when DEST is
omitted and an output is requested) RESULT is the text produced by the
stylesheet.
The second output is the compiled javax.xml.transform.Transformer.
MATLAB R2026a requires Name-Value XMLEngine="jaxp" when a second output
is requested.
The transformation is done by the Java XSLT processor of the bundled
runtime (javax.xml.transform); no external interpreter is involved.