Creating conditional XSLT regions
You can use Dreamweaver to create simple conditional regions or multiple conditional regions on an XSLT page. You can make a selection in Design view and apply a conditional region to the selection, or you can just insert a conditional region wherever the insertion point is in the document.
For example, if you wanted to display the word "Unavailable" next to the price of an item when the item is unavailable, you could type the word "Unavailable" on the page, select it, and then apply a conditional region to the selected text. Dreamweaver surrounds the selection with
<xsl:if> tags, and only displays the word on the page when the data match the conditions of the conditional expression.
To create a conditional XSLT region:
- Select Insert > XSLT Objects > Conditional Region, or Insert > XSLT Objects > Multiple Conditional Region.
- In the Conditional Region or Multiple Conditional Region dialog box, enter the conditional expression you want to use for the region.
For more information, click the Help button in the dialog box.
- Click OK.
- Setting the Conditional Region dialog box options
- Setting the Multiple Conditional Region dialog box options
- Creating XSLT pages
- About using XML and XSL with web pages
- Using parameters with XSL transformations