Project

Profile

Help

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

he / latest9.3 / hej / net / sf / saxon / xpath / package.html @ 452a06ef

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 is Saxon's implementation of the JAXP API designed for executing XPath 1.0 expressions
10
directly from a Java application. Saxon extends the interface to handle XPath 2.0, though if the application
11
    makes extensive use of XPath 2.0 features, then the <b>s9api</b> interface offers a better fit
12
    to the XPath 2.0 data model. The API can be used either in a free-standing
13
Java application (that is, where there is no XSLT stylesheet), or it can be
14
used from within Java extension functions called from XPath expressions within
15
a stylesheet.</p>
16

    
17
<p>The API itself is defined by JAXP 1.3, in interfaces such as <code>javax.xml.xpath.XPath</code>.<
18
These interfaces are included in Java Standard Edition from JDK 1.5 onwards.</p>
19

    
20

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

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

    
32
<p>An alternative XPath interface, which is not dependent on JAXP 1.3, is available in the
33
package <code>net.sf.saxon.sxpath</code>. However, for most applications the preferred interface is
34
the s9api {@link net.sf.saxon.s9api.XPathCompiler}</p>
35

    
36
<p align="center"><i>Michael H. Kay<br/>
37
Saxonica Limited<br/>
38
30 July 2010</i></p>
39
</body>
40
</html>
(8-8/8)