Shared web hosting - CHAPTER 2 RELATED XML RECOMMENDATIONS result tree
CHAPTER 2 RELATED XML RECOMMENDATIONS result tree will usually be serialized as XHTML. You can also produce printed output from the result tree with XSL-FO. Nowadays, when someone refers to XSL, they re usually referring to XSLT. You can use XSL-FO to produce a printed output, a PDF file, or perhaps an aural layout. Understanding XSLT I ll delve into XSLT in much more detail in Chapters 6 and 7, but here I ll work through a simple example so you can see the power of XSLT. You ll see how to use XSLT to convert your DVD document into an XHTML page that includes CSS styling. This process is different from styling the XML content directly with CSS, which I ll cover in Chapter 5. Earlier, you saw that CSS styles the source document using a push model, where the structure of the input defines the structure of the output. XSLT allows both a push model and a pull model, where the structure of the stylesheet defines the structure of the output. In this example, you ll see how to use both. You ll use the source document to define the display order, but the stylesheet will provide the structuring information. You ll create a list of all DVDs to display in a table on an XHTML page, and you ll add a little CSS styling to improve the appearance. You can find the files used in the example saved as dvd_XSLT.xml and dvdtoHTML.xsl. They are saved within this chapter s ZIP file in the Source Code area of the Apress web site (http://www.apress.com). Figure 2-4 shows the web page produced by the XSLT stylesheet. Figure 2-4. The transformed dvd.xml document shown in Internet Explorer The web page is created by applying the following stylesheet to the source XML document:
Note: If you are looking for cheap and reliable webhost to host and run your web application check Vision coldfusion web hosting services