Spry User Guide - Support - Adobe
Spry User Guide - Support - Adobe
Spry User Guide - Support - Adobe
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
The following is the DOM-tree representation of the selected node:<br />
The data set then flattens the selected data into the following table.<br />
@id photographer photographer/@id email<br />
12345 John Doe 4532 john@doe.com<br />
Notice that the column names for attributes of children elements are prefixed with the tag name of the child element.<br />
In this particular case, photographer is a child element of the selected gallery node, so its id attribute is prefixed<br />
with photographer/@. Also notice that nothing was added to the table for the photos element, even though it is a<br />
child of the gallery node. That is because <strong>Spry</strong> does not flatten any child elements that contain other elements.<br />
Example of selecting an attribute of a single element and flattening it<br />
With XPath you can also select attributes of nodes. The following code shows data selected with the<br />
gallery/photos/photo/@path XPath, in bold:<br />
<br />
John Doe<br />
john@doe.com<br />
<br />
<br />
<br />
<br />
<br />
<br />
SPRY<br />
<strong>User</strong> <strong>Guide</strong><br />
97