Configuring Transformation Scenarios for a Framework
When distributing a framework to the users, it is a good idea to have the transformation scenarios already configured. This helps the content authors publish their work in various formats. Being contained in the Document Type Association, the scenarios can be distributed along with the actions, menus, toolbars, and catalogs.
These are the steps that allow you to create a transformation scenario for your framework.
- Create an xslfolder inside theframeworks/sdffolder.The folder structure for the documentation framework should be: oxygen frameworks sdf schema css templates xsl
- Create the sdf.xslfile in thexslfolder. The complete content of thesdf.xslfile is found in the Example Files Listings.
- Open the
                        Preferences dialog box  and go to
                  Document Type Associations. Open the Document Type dialog
                  for the SDF framework then choose the Transformation tab.
                  Click the  New button and choose the
                  appropriate type of transformation (for example, XML transformation with
                     XSLT). In the New scenario dialog box, fill in the following fields: New button and choose the
                  appropriate type of transformation (for example, XML transformation with
                     XSLT). In the New scenario dialog box, fill in the following fields:- Fill in the Name field with SDF to HTML. This will be the name of your transformation scenario.
- Set the XSL URL field to ${framework}/xsl/sdf.xsl.
 Configuring a New XSLT Transformation Scenario 
- Change to the Output tab. Configure the fields as follows:- Set the Save as field to ${cfd}/${cfn}.html. This means the transformation output file will have the name of the XML file and the html extension and will be stored in the same folder.
- Enable the Open in Browser/System Application option.
                        NoteTo set the browser or system application that will be used, open the Preferences dialog box , go to Global, and set it in the Default Internet browser field. This will take precedence over the default system application settings.
- Enable the Saved file option.
 
- Set the Save as field to 
- Click the OK button to save the new scenario.
Now the scenario is listed in the Transformation tab:
Transformation Tab

To test the transformation scenario that you just created, open the SDF XML sample
               from the Example Files
                  Listings. Click the  Apply Transformation Scenario(s) button to display
               the Transform with dialog box. The scenario list contains the scenario you defined
               earlier . Select the SDF to HTML scenario that you just defined and click the
               Apply associated button. The HTML file is saved in the same folder
               as the XML file and displayed in the browser.
Apply Transformation Scenario(s) button to display
               the Transform with dialog box. The scenario list contains the scenario you defined
               earlier . Select the SDF to HTML scenario that you just defined and click the
               Apply associated button. The HTML file is saved in the same folder
               as the XML file and displayed in the browser.
            
