XPath Tools in StyleVision

Edit and Debug XPath for Stylesheets & Reports

  • XPath Builder
  • XPath sytax highlighting
  • XPath auto-completion (intellisense)
  • XPath Debugger
  • Dynamic filtering
  • Conditional formatting
  • Data aggregation
  • Custom calculations

Using XPath to Define Stylesheets and Reports

In StyleVision, XPath is used to define rules, filters, and calculations that dynamically display and manipulate data in your reports and corresponding XSLT stylesheets. By incorporating XPath expressions directly within the design, StyleVision allows you to perform a range of functions, from simple operations like selecting specific nodes and filtering XML or XBRL data, to more complex tasks like aggregating values, setting conditional formatting, and creating custom calculations.

XPath expressions in StyleVision also support advanced features such as referencing values across different parts of a document or taxonomy, which helps create accurate, data-driven reports while letting you tailor report layouts based on the data content.

XPath Editor and Evaluator

StyleVision makes it easy to define sophisticated conditional formatting for your reports and forms (as well as charts,) using XPath. Using the intelligent Edit XPath Expression dialog, you can define:

  • Conditional templates for variable layout and dynamic presentation that changes based on data in the source file(s).
  • Extension templates using XPath wildcards to create user-defined templates that can output a wide range of variable data based on the referenced XML source code.
  • Template filtering to automatically filter data out of stylesheet design output based on an XPath evaluated at runtime.
  • Auto-calculations to summarize tabular data or provide other functions in output or input stylesheet templates.
XPath editor for XSLT stylesheet designer

As you’re working, toggle between XPath Builder and XPath Evaluator modes to test and refine your expressions.

XPath Debugger

The XPath editor window includes an advanced XPath Debugger for testing XPath expressions.

An integrated XPath Debugger makes it easy to test and troubleshoot complex XPath expressions during report creation to save time and reduce frustration. Toolbar buttons let you go step by step through the evaluation of each XPath expression and examine the results returned for each step.

For a deeper dive into the StyleVision XPath Debugger check out this blog post.

Test and debug XPath in StyleVision

Learn more about Altova XPath tools.