Project

Profile

Help

How to connect?
Download (1.83 KB) Statistics
| Branch: | Tag: | Revision:

he / latest8.9 / bj / net / sf / saxon / xpath / package.html @ c2c1fd99

1
<html>
2

    
3
<head>
4
<title>Package overview for net.sf.saxon.xpath</title>
5
</head>
6

    
7
<body>
8

    
9
<p>This package provides an API for executing XPath expressions
10
directly from a Java application. The API can be used either in a free-standing 
11
Java application (that is, where there is no XSLT stylesheet), or it can be
12
used from within Java extension functions called from XPath expressions within
13
a stylesheet.</p>
14

    
15
<p>The API itself is defined by JAXP 1.3, in interfaces such as <code>javax.xml.xpath.XPath</code>.
16
This package is therefore dependent on JAXP 1.3. J2SE 5.0 (also known as JDK 1.5) includes JAXP 1.3
17
as a standard component, but JDK 1.4 does not. To run the code in this package under JDK 1.4,
18
you therefore need to install JAXP 1.3 separately. You can get this from
19
<a href="https://jaxp.dev.java.net/">https://jaxp.dev.java.net/</a>. At the time of writing it is
20
reached via a link labelled "Unbundled EA Build".</p>
21

    
22
<p>This package (net.sf.saxon.xpath) is distributed in a separate JAR file,
23
<code>saxon8-xpath.jar</code> to avoid making the whole of Saxon dependent on JAXP 1.3.</p>
24

    
25
<p>The interfaces provided by Saxon extend the JAXP 1.3 interfaces in various ways. There
26
are three reasons for this:</p>
27

    
28
<ul>
29
<li><p>Saxon supports XPath 2.0 rather than 1.0</p></li>
30
<li><p>The package retains support for some interfaces that were provided before JAXP 1.3 came along.
31
(These might disappear in the course of time).</p></li>
32
<li><p>There are methods that allow an escape into Saxon's more low-level APIs, needed by
33
anyone doing serious software integration.</p></li>
34
</ul>
35

    
36
<p>An alternative XPath interface, which is not dependent on JAXP 1.3, is available in the
37
package <code>net.sf.saxon.sxpath</code>.</p>
38

    
39
<p align="center"><i>Michael H. Kay<br/>
40
Saxonica Limited<br/>
41
9 February 2005</i></p>
42
</body>
43
</html>
(9-9/9)