|
Home > Online Product Documentation > Table of Contents > Applying a Stylesheet to Multiple Documents Applying a Stylesheet to Multiple DocumentsYou can apply the same stylesheet to multiple documents Applying the Same Stylesheet in Separate OperationsScenarios make it easy to view results and apply the same stylesheet to multiple XML documents. A stylesheet can have any number of scenarios. Each scenario is associated with only one stylesheet. In addition to the stylesheet, a scenario is associated with a source XML file. The same XML file can be associated with any number of scenarios. You create an initial scenario when you create a stylesheet. You can create additional scenarios at any time. See Creating a Scenario. To view results for a particular scenario:
1. Click the down arrow in the scenario field at the top of the stylesheet window.
2. Click the scenario you want to view.
3. Click
Preview Result
, which is directly to the left of the scenario field. This applies the stylesheet to the XML document specified in the selected scenario.
Each time you generate a different scenario, Stylus Studio displays a tab at the bottom of the Preview window for that scenario. Click the tab for the scenario you want to view. This allows you to compare results. Applying a Stylesheet to Multiple Documents in One Operation
To apply a stylesheet to multiple documents in one operation, call the
For example, you can specify the following:
This selects the
Stylus Studio looks for the document in the directory that contains the stylesheet.
The
|