Bind XML data to the XSLT page

Bind XML data to the XSLT page

Now you’re ready to bind XML data to the page.

  1. In the Bindings panel (Window > Bindings), select the item element and drag it to the empty table cell.

    This is a picture of the feature being described.

    An XML data placeholder appears on the page. The placeholder is highlighted and in curly brackets. It uses the XPath (XML Path language) syntax to describe the hierarchical structure of the XML schema.

  2. Press the Right Arrow key on your keyboard to move the insertion point to the right of the XML data placeholder.
  3. Press the Spacebar, type a hyphen, and press the Spacebar again.

    This is a picture of the feature being described.

  4. In the Bindings panel, select the description element and drag it to the insertion point.

    Another XML data placeholder appears on the page. Depending on your monitor resolution, the placeholder may move to the next line. Don’t worry about this now. When you display the page in a browser later on, the data will populate the table accordingly.

  5. Lastly, select the price (7) in the right table cell.
  6. In the Bindings panel, double-click the price element.

    Again, the XML data placeholder affects the layout of the page. Don’t worry about this now.

  7. Save the page, and then preview your work in a browser by pressing F12 (Windows) or Option+F12 (Macintosh).

The browser displays the page showing one row of data from the XML file.



Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly
 
ASPTreeView.com
 
Evaluation has »ЖТНєЦЩexpired.
Info...