Home |  Ramblings |  Code Samples |  Bookshelf |  Links |  Friends & Family

Code Samples


Table of Contents

XML/XSLT

I thought it might be a good idea to start the code samples page with the code for the site. So here is a copy of the XSL stylesheet used, with a sample XML source file:

XSL stylsheet
Basis for transforming the source XML into HTML.
Sample XML file.
Creates the links page.

Note: This site is in continuous flux at the moment, so the files above may be a little out of date. If I remember, I shall update them when this whole thing is a little more stable.

Details

A number of good XML tools exist. Some of these I have listed under the links/apache section on my links page. For this site, however, I have explicitly used the JAXP 1.1 API, which is available for download from http://java.sun.com/xml.

The JAXP download includes both the Apache XML parser (Crimson) and the Apache XSLT engine (Xalan). To run the XSL Transformation stylesheet, I simply used the code from the SimpleTransform example.


Copyright © 2002 Manuel Amago. All Rights Reserved.
Colophon

Hosted by www.Geocities.ws

1