Add a Repeat Region XSLT object

Add a Repeat Region XSLT object

The Repeat Region XSLT object lets you display repeating elements from an XML data source on a web page. Next you’ll add the Repeat Region XSLT object to the table row so that you can display multiple specials on the page.

  1. In the Document window, click once anywhere inside the table row containing the XML data placeholders.
  2. In the tag selector, click the rightmost <tr> tag to select the table row.
  3. Select Insert > XSLT Objects > Repeat Region.

    This is a picture of the feature being described.

  4. In the XPath Expression Builder, select the repeating element menu_item. (Repeating elements are indicated by a small plus sign).

    This is a picture of the feature being described.

  5. Click OK.

    In the Document window, a thin, tabbed, gray outline appears around the repeated region. (You’ll need to deselect the table to see it.) Later, when you preview your work in a browser, the gray outline will disappear and the selection will expand to display the specified repeating elements in the XML file.

    Dreamweaver also shortens the length of the XML data placeholder. This is because Dreamweaver updates the XPath for the XML data placeholder so that it is relative to the path of the repeating element. For more information on this topic, see About XML data and repeating elements in Using Dreamweaver.

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

The browser now displays the page showing each menu item.



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...