Skip to Main Content
Adobe® Dreamweaver® CS4 Bible
book

Adobe® Dreamweaver® CS4 Bible

by Joseph Lowery
March 2009
Beginner to intermediate content levelBeginner to intermediate
1321 pages
46h 24m
English
Wiley
Content preview from Adobe® Dreamweaver® CS4 Bible
1119
Integrating with XML and XSLT
32
Linking from an XML file
All of the work so far has been centered on the XSLT page. Now it’s time to shift focus to the XML
document. The first action is to link the XSLT page from the XML file. Recall that the browser actu-
ally loads the XML file, which in turn calls the XSLT page to transform the data into HTML.
Client-side XSL transformations only work with local XML files. To use the data from an
RSS feed, you’ll need to save the data page from your browser and publish it to your own
Web server.
To link an XML to an XSLT page, follow these steps:
1. Open the XML file attached in the XSLT document.
2. Choose Commands ➪ Attach an XSLT Stylesheet.
3. When the Attach an XSLT Stylesheet dialog box opens (see Figure 32-14), click Browse to
locate the XSLT file you’ve been working with.
FIGURE 32-14
Link your XML file to the appropriate XSLT Stylesheet.
Remember that both the XML and XSLT files must be in the same folder. If the XSLT file is
in a separate folder, all the dependent files (including images, CSS, and includes) will not
be found.
Publishing and viewing XML and XSLT files
XML files can be published to the server like any other document in Dreamweaver. Best of all,
Dreamweaver is smart enough to automatically publish your XSLT files—and any files referenced in
that document—if you opt to put dependent files.
It’s vital to remember that you must ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Adobe® Dreamweaver® CS5 Bible

Adobe® Dreamweaver® CS5 Bible

Joseph W. Lowery
Dreamweaver® CS3 Bible

Dreamweaver® CS3 Bible

Joseph W. Lowery

Publisher Resources

ISBN: 9780470382523Purchase book