Quick Assist and Quick Fix Support

Quick Assist

Working with large stylesheets becomes more and more difficult as their complexity increases. oXygen helps you reorganize them by allowing you to easily extract sections from templates, move some XSLT components to other stylesheets, rename templates and variables, and search references and occurrences in the project files. Some operations that imply modifications to multiple files display a preview window that shows the exact changes that will be performed in each file.

XSLT Search and Refactoring

XSLT Refactoring Actions

oXygen helps you improve code readability of an XSLT stylesheet and reduce its complexity using refactoring actions. For example, you can use the Extract template action to break a long template into smaller templates. Similarly, you can refactor long XPath expressions by extracting small sub-expressions as local/global variables or parameters. Also, if you want to move one or more XSLT components (templates or functions) to another stylesheet oXygen helps you to refactor your stylesheet.

Rename XSLT Occurrences

XSLT Refactoring

You can rename XSLT components (variables, templates, functions, etc.) and you have full control over all changes using a Diff view, which allows you to inspect and review the document edits before accepting them. The scope of the edits can be the current file, the Project, the Master Files, or another scope that you define.

Search XSLT References/Declarations

This search is performed for any XSLT component that has references or declarations (variables, functions, named templates, attribute sets, etc.) The search scope can be the current file, the Project, the Master Files, or a custom scope defined by user.

Also, all the occurrences of an XSL component are highlighted in the text when you place the caret near the component name.

Component occurences highlighted into the XSL source

Component Dependencies

The Component Dependencies view displays a tree of component dependencies, starting with a specified component. For example, you can quickly see where an XSLT template is called from, and if called from other named templates you can expand it further to see its dependencies.

XSL Component Dependencies

Quick Fix

oXygen offers quick fixes for errors that appear during XSLT development. Using the Quick Fix support you can resolve problems, such as missing templates, misspelled template names, missing functions, or references to an undeclared variable or parameter.

Quick Fix
Video Tutorials
" oXygen XML Editor is the premier text editor for XML geeks, and an indispensable tool for O'Reilly's Production group. My team uses oXygen XML Editor for everything from simple XML editing to Schema validation and XSLT transformations. The digital production staff especially loves oXygen's built-in EPUB support, which eliminates a great deal of the grunt work that is usually entailed in editing EPUB files. The more we use oXygen, the more realize what a powerful tool it can be in digital and XML-based workflows."
Adam Witwer
Director of Content and Publishing Operations
O'Reilly Media