Java Reference
In-Depth Information
</head>
<body>
<table border="1">
<tr>
<th>Name</th><th>EMail</th>
</tr>
<tr>
<td>Ian Darwin</td><td>http://www.darwinsys.com/</td>
</tr>
<tr>
<td>Another Darwin</td><td>afd@node1</td>
</tr>
</table>
</body>
</html>
Figure 20-2 shows the resulting HTML file opened in a browser.
Figure 20-2. XML to HTML final result
Let's look at the file people.xsl (shown in Example 20-5 ). Because an XSL file is an XML
file, it must be well-formed according to the syntax of XML. As you can see, it contains
some XML elements but is mostly (well-formed) HTML.
Example 20-5. people.xsl
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<html>
<head><title>Our People</title></head>
<body>
Search WWH ::




Custom Search