Attach the XSLT page to the XML page

Attach the XSLT page to the XML page

Once your XSLT page is finished, you must attach it to the XML page. When you use Dreamweaver to attach the page, Dreamweaver inserts a link to the XSLT page at the top of the XML page.

The XML page is the page to which your site visitors will browse when viewing the page online. This is because they must browse to the "content" page containing the data (the XML file), instead of the page that contains the styles (the XSLT page).

  1. With the xml_menu.xsl page open in the Document window, open the Bindings panel (Window > Bindings) if it isn’t already open.
  2. In the Bindings panel, double-click on Schema for specials.xml to open the specials.xml file. (You must double-click the words, and not the page icon.)
  3. Select Commands > Attach an XSLT Stylesheet.
  4. In the Attach an XSLT Stylesheet dialog box, click the Browse button, browse to the xml_menu.xsl page, select it, and click OK.
  5. Click OK to close the Attach an XSLT Stylesheet dialog box.

    This is a picture of the feature being described.

    Dreamweaver inserts the reference to the XSLT page at the top of the XML document.

    This is a picture of the feature being described.

  6. Save the specials.xml page.
  7. Preview the XML page (not the XSLT page) in a browser by pressing F12 (Windows) or Option+F12 (Macintosh).

    The XML page is displayed in a browser, styled with the XSLT page you created.

    This is a picture of the feature being described.

    Remember, your site visitors will browse to the XML page (not the XSLT page) once you’ve deployed both pages to your server. For more information, see About client-side XSL transformations in Using Dreamweaver (Help > Using Dreamweaver).



Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly
 
ASPTreeView.com
 
Evaluation has Д¶Дexpired.
Info...