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 as other templates, move some XSLT components to other stylesheet, rename templates and variables, and search references and occurrences in the project files. Some operations that imply modifications in multiple files benefit from a preview window that shows exactly the changes 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 the refactoring actions. For example, you can use the Extract template action to break a long template into more smaller templates. In the same way you can refactor long XPath expressions by extracting small sub-expressions as local/global variables or parameters. Another situation when oXygen helps you to refactor your stylesheet is when you want to move one or more XSLT components(templates or functions) to another stylesheet.

Rename XSLT Occurrences

XSLT Refactoring

You are able to rename XSLT components (variables, templates, functions, etc.) You have full control over all changes using a Diff view to inspect and review the document edits before performing them. The scope of the rename operation can be the current file, the project, the master files or a 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 presents a tree of component dependencies starting with a specified component. For example, you can quickly see from where an XSLT template is called and, if called from other named templates, you can expand further to see where they are called from.

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 template, misspelled template name, missing function or references to an undeclared variable or parameter.

Quick Fix