SAXONICA

Saxon Documentation
Full Contents
About Saxon
Changes in this Release
Conditions of Use
Using XSLT 2.0
Using XQuery
Handling Source Documents
XML Schema Processing
XPath API for Java
Saxon on .NET
Extensibility
Saxon Extensions
Sample Saxon Applications
| Introduction
| Knight's Tour
| JAXP Transformation Examples
| SaxonServlet
| The Book List Stylesheet
| Shakespeare Example
» | The Bible
| JDOM Example
| Example applications for .NET
The Saxon SQL Extension
XSLT Elements
XPath 2.0 Expression Syntax
Function Library
Standards Conformance

# The Bible

The stylesheet bible.xsl takes as input an XML file containing the text of the Old or New Testament. These files are not included in the Saxon distribution for space reasons, but can be downloaded from http://www.ibiblio.org/bosak/xml/eg/rel200.zip or from various mirror sites. They were prepared by Jon Bosak.

The output of the stylesheet is a set of 292 HTML files in a single directory, which together provide a frames-oriented rendition of the text. The application also works with the Old Testament text, but not with the other religious texts included in Jon Bosak's distribution.

To run the stylesheet on the Java platform first create an output directory (say htmldir), then execute the following from the command line :

java net.sf.saxon.Transform data\nt.xml styles\bible.xsl dir=htmldir

The equivalent on .NET is:

Transform data\nt.xml styles\bible.xsl dir=htmldir

The final parameter sets the value of the XSLT parameter "dir" to the value "htmldir", which is referenced within the stylesheet to select a directory for output files.

Next