You can associate an XSL file with an XML file, so that, in certain
circumstances, the XML file is automatically called by the XSL file.
Associating an XSL file with an XML file provides the following benefits:
- When you want to create an XPath expression for the XSL file (using the
XPath Expression wizard), you will not have to specify the XML file the XPath
expression should be based on, as it will automatically be based on the XML
file you have associated with your XSL file.
- Certain XSL wizards require an XML file to build their content from. If
you have an XML file associated with your XSL file, you will not be prompted
to specify an XML file when you launch the XSL wizard.
You can associate an XSL file with more than one XML file, with one
of them set as the default (that is, the one that will automatically be used
if add an XPath expression to the XSL file or invoke an XSL wizard).
The
following instructions were written for the Resource perspective, but they
will also work in many other perspectives.
Follow these steps to associate
an XSL file with an XML file: