Operation Manual
493
USING DREAMWEAVER
Displaying XML data with XSLT
Last updated 3/28/2012
You can create more complex filters that allow you to specify parent nodes as part of your filter criteria. In the
following example, you want to restrict the result set to those
item nodes where the store’s @id attribute is equal to
1 and the
item’s price node is greater than 5.
When you click OK, the following code is inserted in your XSLT page:
<xsl:for-each select="provider/store[@id = 1]/items/item[price > 5]">
Content goes here
</xsl:for-each>
For more information and examples of repeating regions, see the <xsl:for-each> section in the Reference panel.
Performing XSL transformations on the client
Workflow for performing client-side XSL transformations
You can perform client-side XSL transformations. Read about server-side and client-side XSL transformations and
about using XML and XSL with web pages before building pages that display XML data.
The general workflow for performing client-side XSL transformations is as follows (each step is described in other
topics):
1. Set up a Dreamweaver site.
2. Create an XSLT page or convert an HTML page to XSLT.
• In your Dreamweaver site, create an entire XSLT page.
• Convert an existing HTML page to an entire XSLT page.