SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1691 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


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 view the XML file in your browser and not the XSLT document. Given
that the XSLT page has all the visual elements, this approach might feel a bit unnatural, but it??™s the way it
works.
Only modern browsers are capable of viewing an XML file and processing the XSLT correctly on the clientside.
Among capable browsers are:
n Internet Explorer 6 and higher
n Netscape 8 and higher
n Mozilla 1.


Pages:
1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703