Figures from Chapter 3
- Figure 3.2: test-sax.pl -- The simple perl program test-sax.pl that uses the SAX parser API. The handler functions are contained in the MySAXHandler object, defined in the file (a perl module) MySAXHandler.pm.
- Figure 3.3: DemoSaxApp.txt -- A Java implementation of the example illustrated in Figure 3.2. In this case, The handler functions are contained in the MySAXHandler class, defined in the file MySAXHandler.java.
- Figure 3.4 -- The example document test-xml.xml that references a script program using the XML namespace mechanism. This program uses the DOM to traverse the tree, producing an HTML-format list of the elements and text content of the tree. The script program is listed in Figure 3.5.
- Figure 3.5 -- Source listing for the program tree-traverse.js that uses the DOM to create a listing of all the element and text "nodes" in an XML document.
- Figure 3.7 -- HTML document use to test DOM parsing of XML on Internet Explorer 5.
- Figure 3.8 -- Source listing for the program tree-traverse-ie5.js that, within Internet Explorer 5, loads in an external XML document and uses the DOM to create a listing of all the element and text "nodes" in an XML document.
- Figure 3.10 ( txt ) -- XML document xsl-test-source.xsl used to test XSLT transformations. The XSLT transformation style sheet is shown in Figure 3.11.
- Figure 3.11 ( txt ) -- An XSL style sheet for transforming documents like those in Figure 3.10 into XHTML. Figure 3.11 shows (as HTML) the result of the transformation.
- Figure 3.12 -- The HTML document resulting from applying the style sheet in Figure 3.11 to the document listed in Figure 3.10.
- Figure 3.14 -- A simple HTML document containing a script that uses the DOM to manipulate the displayed content.
- Figure 3.16 -- An example HTML document containing two data islands, on inside the document, and one referenced by a URL. This mechanism is only supported by Internet Explorer 5 (and greater).
- Figure 3.17 -- The example HTML document from Figure 3.16, modified so that it contains "virtual" islands parsable by the Mozilla/Navigator 6 HTML parser.