Search and Refactoring

Working with large stylesheets may become difficult at some point. <oXygen/> can help you in reorganizing stylesheets. You can easily rename templates, variables, extract sections from templates as other templates, search references and occurrences in the project files. For all operations that imply modifications in multiple files, a preview window will show exactly the changes for each files.

XSLT Search and Refactoring

Rename XSLT Occurrences

XSLT Refactoring

You are able to rename XSLT components like 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, like 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