SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1684 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


FIGURE 32-10
Dreamweaver displays the content for both outcomes in a Multiple Conditional Region.
If you just want to insert a single condition with a default result, you can stop here.
4. To add additional conditions and results, place your cursor in the placeholder content in the
area and choose the tag in the Tag Selector.
5. Press the left-arrow key to move the cursor in front of the tag.
6. From the Insert bar??™s XSLT category, choose Conditional Region.
7. When the Conditional Region dialog box opens, enter the next condition you want to evaluate in
the Test field; click OK when you??™re ready. Dreamweaver adds an tag with placeholder
content.
8. Repeat steps 4??“7 to add more conditional regions.
After you??™ve created all the conditions desired, replace the placeholder text with the actual page elements or
code you want rendered if the condition is true.
Styling XSLT fragments
Although you can use CSS to style your XSLT fragments, you shouldn??™t link to an external style sheet or
embed styles within the fragment page. If you do, the CSS links and embedded styles will appear in the
body of your document, along with the XSLT fragment. What??™s the solution? Design-time style sheets.


Pages:
1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696