Project

Profile

Help

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

he / latest8.8 / bj / net / sf / saxon / sxpath / package.html @ 8de369ca

1
<html>
2

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

    
7
<body>
8

    
9
<p>This package provides an alternative API for executing XPath expressions
10
directly from a Java application: unlike the API in package <code>net.sf.saxon.xpath</code>, these
11
interfaces are not dependent on JAXP 1.3. The API can be used either in a free-standing
12
Java application (that is, where there is no XSLT stylesheet), or it can be
13
used from within Java extension functions called from XPath expressions within
14
a stylesheet.</p>
15

    
16
<p>If you have JDK 1.5 installed, you should probably be using the standard XPath API defined
17
in JAXP 1.3, which is available in package <code>net.sf.saxon.xpath</code>, distributed in a
18
separate JAR file <code>saxon8-xpath.jar</code>. This interface is provided for use it situations
19
where installing JAXP 1.3 is inconvenient. It provides less functionality than the JAXP API, for
20
example it does not allow XPath expressions to reference variables or functions, and it gives no
21
control over the result type of the expression (you can control this by including casts or
22
conversion functions within the expression itself).</p>
23

    
24
<p>The method <code>XPathEvaluator.build(Source)</code> is probably the most convenient way of
25
building a Saxon tree, and can be used quite independently of the XPath API.</p>
26

    
27
<p align="center"><i>Michael H. Kay<br/>
28
Saxonica Limited<br/>
29
9 February 2005</i></p>
30
</body>
31
</html>
(3-3/3)