Macromedia dreamweaver 8-using dreamweaver User Manual

Page of 1030
748
Chapter 36:  Displaying XML Data in Web Pages
Do one of the following:
In your Dreamweaver site, create an XSLT fragment or an entire XSLT page. See 
.
Convert an existing HTML page to an entire XSLT page. See 
If you haven’t already done so, attach an XML data source to the page. See 
.
Bind your XML data to the XSLT fragment or to the entire XSLT page. See 
.
If appropriate, add a Repeat Region XSLT object to the table or table row that contains 
the XML data placeholder(s). See 
Do one of the following:
Use the XSL Transformation server behavior to insert a reference to the XSLT 
fragment in your dynamic page. See 
.
Delete all of the HTML code from a dynamic page, and then use the XSL 
Transformation server behavior to insert a reference to the entire XSLT page in the 
dynamic page.
Post both the dynamic page and the XSLT fragment (or entire XSLT page) to your 
application server. If you are using a local XML file, you will need to post that as well.
View the dynamic page in a browser. When you do so, the application server transforms 
the XML data, inserts it in the dynamic page, and displays it in the browser.
Creating XSLT pages
You can create XSLT pages that let you display XML data on web pages. You can create either 
an entire XSLT page — an XSLT page that contains a 
<body>
 tag and a 
<head>
 tag — or you 
can create an XSLT fragment. When you create an XSLT fragment, you create an independent 
file that contains no body or head tag — a simple piece of code that is later inserted in a 
dynamic page.
NOT
E
If you are starting with an existing XSLT page, and need to attach an XML data source to 
it, see