Operation Manual
As you enter values or make selections in the pop-up menus, the XPath expression in the Expression box changes.
In the following example, you want to restrict the result set to those item nodes where the value of the @available attribute is
true.
When you click OK, the following code is inserted in your XSLT page:
<xsl:for-each select="provider/store/items/item[@available = 'true']">
Content goes here
</xsl:for-each>
Note: You need to surround string values such as true in quotes. Dreamweaver encodes the quotes for you (') so that
they are entered as valid XHTML.
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.
686