Dreamweaver automatically converts these to their character entity equivalents??β
'??β so that the code will validate properly.
9. To add additional conditions, select either and or or from the And/Or column and repeat
steps 5??β8.
10. Click OK when you??β’re done.
996
Enhancing Productivity and Web Site Management Part VI
FIGURE 32-8
Choose the parent repeating element with the plus sign.
Test your XSLT fragment by previewing it in the browser, and Dreamweaver will create the necessary code
to display the page.
Showing XSL data conditionally
Another tool for shaping your XML data through XSL are the conditional XSLT objects in Dreamweaver.
Both the XSLT Conditional Region and Multiple Conditional Region objects are used to display XML data or
even standard HTML if your custom conditions are met. Unlike the filtering mechanism of the XSLT Repeat
Region object, the conditional objects work with data that has already been made available to the page. You
could, for example, display the optional description element from an RSS feed along with the
Description label, but only if the description value exists.
The XSLT Conditional Region, when applied by itself, tests for a single condition and renders the enclosed
content if the condition is met, very much like an If-Then clause in programming.
Pages:
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693