Skip to content

Files

Latest commit

b5b6d00 · Mar 14, 2025

History

History

web-author-xslt-report

Web Author XSLT Report Plugin

Sample plugin to run an XSLT script over the current document and return the result to the client as string.

To execute the report that collects all the IDs, run

editor.getActionsManager().invokeOperation(
    'com.oxygenxml.XSLTReportOperation', 
    {script: 'scripts/collect-ids.xsl'},
    (err, result) => console.log(result.split(',')), // print the result
    null,
    true // This is a background operation - it does not update the document
);

Additional scripts can be added to the scripts folder.