Display xml data in xslt pages – Adobe Dreamweaver CC 2015 User Manual
Page 521
514
XML
Last updated 6/3/2015
Note: You can also click the Source link at the upper-right corner of the Bindings panel to add an XML data source.
2
Do one of the following:
• Select Attach A Local File, click the Browse button, browse to a local XML file on your computer, and click OK.
• Select Attach A Remote File, and enter the URL of an XML file on the Internet (such as one coming from an RSS
feed).
3
Click OK to close the Locate XML Source dialog box.
The Bindings panel is populated with the schema of your XML data source.
Display XML data in XSLT pages
After you’ve created an XSLT page and attached an XML data source, you can bind data to the page. To do this, you add
an XML data placeholder to your page and then use the XPath Expression Builder or the Property inspector to format
selected data that will be displayed on the page.
1
Open an XSLT page with an attached XML data source.
2
(Optional) Select Insert > Table to add a table to the page. A table helps you organize your XML data.
Note: In most cases, you use the Repeating Region XSLT object to display repeating XML elements on a page. In this
case, you might want to create a single-row table with one or more columns, or a two-row table if you want to include
a table header.
3
In the Bindings panel, select an XML element and drag it to the place on the page where you want to insert data.