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).
NOTE |
|
The XML and XSL files you use for client-side transformations must reside in the same directory. If they dont, the browser will read the XML file and find the XSLT page for the transformation, but will fail to find assets (style sheets, images, and so on) defined by relative links in the XSLT page. |
Dreamweaver inserts the reference to the XSLT page at the top of the XML document.
The XML page is displayed in a browser, styled with the XSLT page you created.
Remember, your site visitors will browse to the XML page (not the XSLT page) once youve deployed both pages to your server. For more information, see About client-side XSL transformations in Using Dreamweaver (Help > Using Dreamweaver).