XSLT Editor

XSLT editor

XMLSpy XSLT Editing Features:

  • Support for XSLT 1.0, XSLT 2.0, and XSLT 3.0 (subset)
  • Powered by RaptorXML for lightning fast processing
  • Syntax coloring, line numbering, bookmarking, & source folding
  • Code completion & context-sensitive entry helpers
  • XSLT validation & troubleshooting
  • XSL Outline window
  • Info window for viewing & configuring related files
  • Support for Java, JavaScript, C#, & VBScript in XSLT
  • Intelligent XPath auto-completion
  • Integrated Web browser

Download Trial

XSL and XSLT Editor

The XMLSpy XSLT editor provides numerous tools for writing XSLT code, with support for XSLT 1.0, 2.0, and 3.0. With powerful tools including the built-in XPath Analyzer, lightning fast transformations powered by RaptorXML, and support for complimentary technologies, XMLSpy is sure to be your XSLT editor of choice for quick, error-free stylesheet development.



XSLT Tools

Intelligent XSLT Editor

Though you can use the XSLT editor in XMLSpy’s Enhanced Grid View to view and edit your stylesheet code in a tabular format, most developers prefer to work in Text View for this type of development. When you're editing XSLT, the Text View provides syntax coloring, line numbering, source folding, book marking, and other visual cues for organizing and navigating through your code quickly and easily. Intelligent entry helper windows and drop down menus offer you choices of elements, attributes, and entities that you can insert with one click, and code completion speeds typing and ensures balanced opening and closing tags.

Integrated project management functionality lets you group related files and assign XSLT transformations, perform batch operations, plug in to source control systems, and more. XMLSpy even includes the powerful Find in Files window for performing XML-aware find and replace operations on selected files, folders, or even an entire project at one time.

XPath Editor

XMLSpy provides powerful XPath 1.0, 2.0, and 3.0 tools to facilitate XSLT stylesheet development. As you’re composing an XPath expression in Text View, Grid View, or in XMLSpy's XPath Analyzer window, XMLSpy provides you with valid XPath functions, as well as element and attribute names from the associated schema and XML instance(s). Intelligent XPath auto-completion accounts for namespaces when listing options and even provides deep path suggestions when the required node is not in close proximity to the current context.

The XPath Analyzer provides real-time evaluation of XPath expressions to help you visualize the resulting node set of any XPath expression as you type it. Syntax coloring automatically highlights errors, and multiple tabs in the XPath Analyzer window let you store and test multiple expressions. You can even evaluate XPaths across multiple files at once.

The XSLT editor also includes the XPath Builder, which helps you define XPath 1.0, 2.0, or 3.0 expressions with one click. You simply select an element or attribute in your XML data file, and the "Copy XPath" command will automatically copy the corresponding XPath expression to the clipboard.

XPath Analyzer in XSLT Editor

XSL Outline

The XSL Outline entry helper window in the XSLT editor is another powerful feature for optimizing XSLT development. When you're working with an XSLT 1.0, 2.0, or 3.0 stylesheet, it lists the templates and functions in the current XSLT file as well as those in any included or imported files. Color coded icons provide at-a-glance information on templates and functions, and selecting the Go to Item icon or double clicking a template or function highlights it in the current document. Functions are listed by name, while templates are displayed by name and/or XPath expression. You can view or edit each template's mode, priority, and associated comment directly in the XSL Outline window.

You can search for, filter, and sort the templates and functions displayed in the outline by multiple criteria. The window also allows you to quickly insert calls to named templates and select a named template as the entry point for transformations.

XSL Outline


A handy XSLT tab in the XMLSpy Info Window provides useful information while you're working with stylesheets in the XSLT editor. This tab allows you to view the associated schema and XML instance files, as well as any included or imported XSLT documents, and mousing-over the file names reveals the complete file path. You can even configure the schema and XML instance relationships directly in this tab with just a few clicks. In addition, toolbar buttons allow you to quickly organize some or all of the files into an XMLSpy project or even add all files to a ZIP archive in a user-defined location with just a few clicks.

XSLT info



XSLT Transformations

Open XSLT Architecture

The XSL Options dialog allows you to customize the behavior of the XSLT editor. XMLSpy includes the lightning-fast RaptorXML engine for performing XSLT 1.0, XSLT 2.0, and XSLT 3.0 transformations, and it also provides built-in support for the MSXML XSLT engine. An open XSLT architecture allows the use of any other external XSLT processor, including Apache Xalan, Saxon, or XT.

Transformation Output Options

At any time during the XSLT editing process, you can transform your file(s) with a single click to preview the generated output in XMLSpy's Browser View.

In addition to viewing the Web page in XMLSpy, you can instantly open the active file in your choice of browser to test interoperability. The XMLSpy Info window automatically list all browsers currently installed on your system, and you can manually add other applications if required.

The XMLSpy XSLT editor does not restrict you to XHTML or HTML output. Because XMLSpy can open and edit any non-XML text file, you can produce XSLT files that generate any arbitrary textual output and still use XMLSpy to view the resulting files.

Browser view for XSLT Transformation

The XMLSpy XSLT editor is powered by RaptorXML for lightning-fast XSLT processing with strict standards conformance.



Advanced XSLT Tools

Schema-aware XSLT Support

The XMLSpy XSLT editor supports XSLT 1.0 as well as schema-aware XSLT 2.0 and XSLT 3.0. Schema-awareness in XSLT provides additional mechanisms for error isolation, simplified debugging, and enhanced code performance. XMLSpy combines its implementation of XSLT with support for program code in stylesheets as well as powerful editing and debugging features, allowing you to create the most advanced stylesheets quickly and easily.

Support for Java, C#, JavaScript, VBScript

Developers often embed program code in Java, C#, JavaScript, or VBScript to add advanced functionality to their XSLT stylesheets. The XSLT engine in XMLSpy supports these types of program code, allowing you to not only take advantage of the powerful XSLT editing and transformation capabilities for stylesheets that contain program code – you can also test, perfect, and optimize them using the XSLT debugger and XSLT profiler.

More XSLT Tools:

Debugging XSLT

The XSLT editor is complimented by the powerful XMLSpy XSLT debugger, which helps you test and perfect your stylesheets prior to deployment. As you move through an XSLT transformation step by step, you are able to see the specific XML data node, the XSLT processing instruction, and the produced output at the same time. This provides you with an immediate visual understanding of the way that your stylesheet is rendering the XML data.

Optimizing XSLT

When it's time to increase the speed of your XSLT stylesheet, turn to the revolutionary XSL Speed Optimizer, which analyzes your XSLT execution and automatically optimizes it. You can also take advantage of the XSLT profiler, which monitors and records detailed metrics for each processing instruction executed during an XSLT transformation, helping you identify and eliminate bottlenecks quickly.

"Since my first XML project XMLSpy helped me to handle XML and XSLT code. It was so easy to use that in less than a month I was mastering complex XSLT transformation, thanks to the XMLSpy debugging interface, cutting down my delivery time dramatically. Today XMLSpy is my team's weapon of choice for all things XML related."

Wagner Silveira
Senior Software Developer for The Simpl Group