04.02.2013 Views

Spry User Guide - Support - Adobe

Spry User Guide - Support - Adobe

Spry User Guide - Support - Adobe

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

. . .<br />

<br />

<br />

<br />

var dsSpecials = new <strong>Spry</strong>.Data.XMLDataSet("data/cafetownsend.xml",<br />

"specials/menu_item");<br />

<br />

<br />

. . .<br />

<br />

<br />

<br />

<br />

<br />

Item<br />

Description<br />

Price<br />

<br />

<br />

<br />

{item}<br />

{description}<br />

{price}<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Ingredients<br />

Calories<br />

<br />

<br />

{ingredients}<br />

{calories}<br />

<br />

<br />

<br />

. . .<br />

<br />

Note: The example XML file in “<strong>Spry</strong> XML Data Set basic overview” on page 91 does not contain nodes for ingredients<br />

or calories. These nodes are added to the data set for this example.<br />

In the example, the first div tag contains the id and spry:region attributes that create a container for the master<br />

dynamic region:<br />

<br />

The first table-row tag of the master region contains a spry:setrow attribute that sets the value of the current row<br />

in the data set.<br />

<br />

The second div tag contains the attributes that create a container for the detail dynamic region:<br />

SPRY<br />

<strong>User</strong> <strong>Guide</strong><br />

102

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!