Once you have created an XSLT fragment, you can insert it in a dynamic web page using the XSL Transformation server behavior. When you add the server behavior to your page and view the page in a browser, an application server performs a transformation that displays the XML data from the selected XSLT fragment. Dreamweaver supports XSL transformations for ColdFusion, ASP, ASP.NET, or PHP pages.
NOTE |
|
If you want to insert the contents of an entire XSLT page in a dynamic page, the procedure is exactly the same. Before using the XSL Transformation server behavior to insert the entire XSLT page, delete all HTML code from the dynamic page. For more information, see About server-side XSL transformations. |
NOTE |
|
When inserting XSLT fragments, you should always click the Show Code and Design view button after placing the insertion point on the page so that you can ensure that the insertion point is in the correct location. If it isnt, you might need to click somewhere else in Code view to place the insertion point where you want it. |
Dreamweaver automatically populates the next text field with the file path or URL of the XML file that is attached to the specified fragment. To change it, click the Browse button and browse to another file.
Dreamweaver inserts a reference to the XSLT fragment in the page. The fragment is not editable. You can double-click the fragment to open the fragments source file and edit it.
Dreamweaver also creates an includes/MM_XSLTransform/ folder in the sites root folder that contains a runtime library file. The application server uses the functions defined in this file to perform the transformation. For more information, see About server-side XSL transformations.