To refresh your memory on how to implement a design-time style sheet, visit Chapter 7.
Typically, the page intended as the receptacle for the XSLT fragment is built prior to the fragment itself,
along with the CSS style sheet. To view your XSLT fragment with the desired styles, attach the same style
used by the host page as a design time style sheet. Once the design-time style sheet is in place, you can
assign CSS styles to the XML data and surrounding structures, as shown in Figure 32-11.
CROSS-REF CROSS-REF
999
Integrating with XML and XSLT 32
FIGURE 32-11
Style XSLT fragments through Dreamweaver??™s design-time style sheet feature.
Adding XSLT fragments to Web pages
Once your XSLT fragment has been completed, it??™s very straightforward to include it in your server model
page. The actual code insertion is handled by a server behavior, XSL Transformation. To include an XSLT
fragment, follow these steps:
1. Place your cursor where you??™d like the XSLT fragment to appear.
2. From the Server Behaviors panel, click Add (+) and select XSL Transformation from the list.
3. In the XSL Transformation dialog box, click Browse next the XSLT File field.
4. When the Select File dialog box appears, locate the .xsl file that contains your fragment and
click OK.
Pages:
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697