XSLT Editor - Mapper Tab

 

The XSLT Mapper is available only in Stylus Studio XML Enterprise Suite and Stylus Studio Professional Suite.

To display the XSLT mapper, open an XSLT stylesheet that was created by the XSLT mapper, or select File > New > XSLT Stylesheet from the Stylus Studio menu bar and then click the Mapper tab.

The XSLT mapper allows you to map the schema of an XML file to the schema of another XML file. This is useful when you have more than one form for the same information. For example, each vendor might organize an invoice in a different way. Mapping one XML document to another XML document is for XML documents that share similar elements.

When you map one XML file to another XML file, one file is the source document and one file is the destination document. Stylus Studio generates a stylesheet that you can apply to XML documents that have the same schema as the source document. After you apply the stylesheet, the result document has the same schema as the destination document.

Fields

Create Scenario

To create a scenario, click Scenario Properties to the right of the Create Scenario field. You must define a scenario to be able to apply the stylesheet Stylus Studio is creating. After you create the first scenario, the name of the current scenario appears in this field.

Click the down arrow to select a previously defined scenario.

Source file name

Click here to change the name of the source XML document you want to use to perform the mapping. When the mapping is complete, you will have a stylesheet that you can apply to documents that have the same schema as this document.

Destination file name

Click here to change the name of the target XML document you want to use to perform the mapping. When the mapping is complete, you will have a stylesheet that generates XML documents that have the same schema as this document.

Buttons

Preview Result applies the stylesheet in the context of the current scenario.

Scenario Properties displays the Scenario Properties dialog box. Use this dialog box to define a new scenario, update the settings for a scenario, or view information about a scenario.

Open XML From Scenario opens the XML document specified as the source document in the current scenario. Stylus Studio displays the source document in the XML editor.

Display Preview Window toggles the display of the XSLT Preview window.

For More Information

Overview of the XSLT Mapper

Steps for Mapping XML to XML

 
Free Stylus Studio XML Training:
W3C Member