SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1677 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


In addition to displaying XML data as text, you can also use it in a link. Select the text, data, or
image you want to use as a link and then, from the Property inspector??™s Link field, click the
Browse for File icon. When the Select File dialog box opens, select Data Sources; the XML data tree appears
just like in the Bindings panel. Choose the data field you want to use as the href value, typically labeled
link or rss:link, and then click OK twice to close the open dialog boxes. The XML data appears in the Link
field wrapped in braces, like this: {rss:link}.
The basic code inserted by Dreamweaver for XSL data looks like this:

where the value of the select attribute is the XPath description of where the data is located in the XML
file. Forward slashes represent parent nodes, much like folders in a URL.
Repeating XSL data
A common use of XSLT fragments is to incorporate results from an RSS feed onto the page. Generally, you
would include a few heading elements, such as the main feed title and author, followed by a series of titles,
short descriptions, and links, each concerning a particular item in the RSS feed. The layout for such a
fragment often involves a table to contain the repeating data, as shown in Figure 32-6.


Pages:
1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689