- Developing SOA Applications with Oracle SOA Suite
- Sharing Functionality Across Service Components
- Creating Transformations with the XSLT Map Editor
- Creating an XSLT Map
- How to Create an XSLT Map
How to Create an XSLT Map
To create an XSLT Map:
- From the File main menu, select New > XSL Map. Alternatively, right-click the project folder and select New > XSL Map.
The Create XSL Map File dialog appears.
- Under File Name, specify a name for your .xsl map file.
- Under Directory name, select the destination directory for the .xsl file.
- Under Sources, select Use Source Schema(s) to specify a source schema for the map.
- Under Primary Source, click Browse to select the source schema. The Select Schema dialog box appears.
- Choose Select Schema if you want to use an XSD schema file or WSDL file for the source schema.
Note:
You can alternatively use a sample XML file as the schema source.
Select Generate from XML to generate the schema from an XML file. Select the sample file and click Open. Go to Step 9.
- Click Browse to select a schema file and element for the source schema. The Type Chooser dialog appears.
- Select the schema file and the corresponding element from the project schema files or project WSDL files tree. Click OK.
If the schema or wsdl file that you need is not available in the tree, you may import a schema or wsdl file by clicking the Import Schema File or Import WSDL File button at the top right corner of the dialog.
- Click OK in the Select Schema dialog.
Note:
Under Additional Sources, you can click the Add Schema button identified by the green plus icon (+) to add any additional sources in the form of parameters.
- Select Use target schema to specify a target schema for your XSL map.
- Click Browse to select the target schema. The Select Schema dialog appears.
- After selecting the target schema, click OK in the Select Schema dialog.
Note:
When a Target Schema is used, initial element and attribute nodes may be generated in the XSLT pane depending upon the current Preferences setting.
The default setting is to generate a root template with a
match=''/''
attribute followed by all required elements and attributes in the target schema. - Click OK to create the XSL map file.
Note:
-
Once the XSLT map is created you may add or replace source and target schemas by selecting the appropriate option from the context menu in the canvas pane.
For example, you may add additional sources as parameters by selecting Add Parameter from the context menu on the source pane.
-
You may edit a source or target schema file that is being used by an XSLT Map, using JDeveloper. Upon saving the schema file, the source or target tree in the XSLT editor is automatically updated.
-