Creating conditional XSLT regions

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:

  1. Select Insert > XSLT Objects > Conditional Region, or Insert > XSLT Objects > Multiple Conditional Region.
  2. 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.

  3. Click OK.

Related topics

  • 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


Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Preparing to Build Dynamic Sites
Making Pages Dynamic
Defining Sources of Dynamic Content
Developing Applications Rapidly
 
ASPTreeView.com
 
Evaluation has ГХТexpired.
Info...