Transform & query¶
XSLT, XQuery, XPath and XProc run inside the editor: the stylesheet or query is a normal editor tab, the Transform panel holds stylesheet, input and parameters, and the result appears in the OUTPUT panel below the editor.
| Task | Page |
|---|---|
| Run a stylesheet, set parameters, preview live, process many files | Run a transformation |
| Ask the open document a question with XPath, XQuery or JSONPath | Query console |
| Step through XSLT, XQuery or Schematron | Debugger |
| Find the slow templates and functions | Profile a transformation |
| Test stylesheets and Schematron rules | Test with XSpec |
| Run an XProc 3.0 pipeline | XProc pipelines |
| Use Saxon HE 13, xsltproc or another processor | External XSLT processors |
| Copy a pattern to start from | XSLT and XQuery examples |
| Keep a transformation with its input and output, check results against expected files | Projects & scenarios |
Where everything is¶
| What | Where |
|---|---|
| Edit the stylesheet or query | Open the .xsl / .xq file; it is a normal editor tab |
| Choose stylesheet and input | The Transform panel (activity bar → Transform): STYLESHEET and INPUT |
| Run | Run Transform in the panel, or Ctrl+Enter with the stylesheet active |
| See the result | The OUTPUT panel below the editor |
| Parameters, output method | The panel's PARAMETERS and OUTPUT METHOD sections |
| Queries | The Query console (Ctrl+Shift+X) |
| Debug | Debug next to Run Transform, or Shift+F5 |
| Batch, profile, trace | The panel's OPTIONS & TOOLS section |
Every field of the panel: Transform panel reference.