Overview of Scenario Features

This section describes the main features of XSLT scenarios. It covers the following topics:

Specifying XML Source Documents

The main benefit of the XSLT scenario feature is that it lets you specify the XML document against which you want to run your XSLT. By default, Stylus Studio uses the first source document you add using the XSLT mapper as the XML source document for the scenario. You can specify the XML source document setting on the General tab of the Scenario Properties dialog box.

Figure 208. General Tab of XSLT Scenario Properties Dialog Box

For more information

See Source Documents to learn more about the process of selecting and working with source documents in XSLT mapper.

Setting Values for Global Parameters

The Parameter Values tab of the Scenario Properties dialog box displays any global parameters you have defined in the XSLT source and allows you to

  • Specify an alternate value to use when running the scenario
  • Indicate whether the value is an XPath expression or a string

For example, imagine the following parameter defined in the XSLT source:

<xsl:param name="my_title" select="'Confederacy of Dunces'"/>
               

            

This parameter is displayed on the Parameter Values tab as follows:

Figure 209. Specifying Alternate Values for XSLT Parameters

If you want to specify an alternate parameter value for this scenario, click the Parameter value to be used when processing entry field. If the alternate value you enter is an XPath expression, click the associated check box.

Tip

 

All global parameters you define for a stylesheet are displayed on the Params/Other tab of the XSLT editor. Parameters displayed on this tab are read-only.

Choosing an XSLT Processor

By default, Stylus Studio uses a built-in processor to process the XSLT you compose. You can select other supported processors on the Processor tab, or use this tab to specify an external or custom processor.

Performance Metrics Reporting

 

Performance metrics reporting is available only in Stylus Studio XML Professional Edition.

Stylus Studio can generate an HTML report that contains information about how your XSLT is being processed. This option is off by default, but you can enable it, and choose options for the report, on the Profiling Options tab.

See Profiling XSLT Stylesheets to learn more about the different ways in which Stylus Studio can provide you with XSLT performance metrics.

Performing Post-Processing

You can use the Post-process tab to specify any optional processing you want performed on the XML after it has been processed by the XSLT.

DataDirect XML Converters Video Demonstration

DataDirect XML Converters are Java and .NET components that enable access to any data (flat files, EDI) from your application code. Learn how to deploy XML applications today.

Convert CSV to XML

Convert CSV to XML with a handy CSV to XML document wizard that helps you extract data from your CSV files with ease.

Oracle XML Tools

Oracle XML tools for working with relational and XML data, including exporting of database tables to XML and importing XML into the Oracle8i, Oracle9i and Oracle10g databases.

Sybase

Sybase Adaptive Server Enterprise (ASE) is a powerful high-performance database for recording and retrieving business records. Learn how to develop XML applications for Sybase using Stylus Studio.

Stylus Most Wanted

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.