Database Reference
In-Depth Information
If a match is found, it takes the actions indicated in the loop that ends with (third from the
bottom of the stylesheet). Within the loop, styles are set for each element in the CustomerList
document.
The examples we have created are based on the View Ridge Gallery database that we have
used in previous chapters. Here we are creating an XML document that can be viewed using a Web
browser to display the list of customers at the View Ridge Gallery. As shown in Figure 11-50(a), we
have revised the View Ridge Gallery home page we created earlier in the chapter to include a link
to the XML document. Clicking the link displays the Web page shown in Figure 11-50(b), which is
the result of applying the stylesheet in Figure 11-49 to the document in Figure 11-48(b).
XSLT processors are context oriented; each statement is evaluated in the context of
matches that have already been made. Thus, the following statement:
<xsl:value-of select = "CustomerName/LastName"/>
Figure 11-50
HtML result from
application of Stylesheet
Use this link to display
the XML document in
a Web browser
(a) the View ridge Gallery Home Page
(b) Web Page as Displayed in Web Browser
Search WWH ::




Custom Search