summaryrefslogtreecommitdiffstats
path: root/development/saxonb/README.SLACKWARE
blob: 5055a8f14b70b823f40f691eaa8711bc59659495 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Setting CLASSPATH
=================

SaxonB is a java application and as such the main jar file
MUST be included in the $CLASSPATH environment variable.

For most uses you should only add the path to the saxon9.jar file.
However, if you need to use DOM, JDOM or other xml tree
models, you may need to add some or all of the other jar file
paths. The SaxonB jar files are found in /usr/lib/saxonb/, the
online documentation below has additional information on this.

To add the path from the command line for a single session:
export CLASSPATH=$CLASSPATH:/usr/lib/saxonb/saxon9.jar
This package installs scripts to /etc/profile.d/saxonb.{sh,csh}
which should handle this correctly for you.


Using XSLT Transforms
=====================

Because SaxonB is a java application it must be invoked using
java syntax. See the usage documentation at...

http://saxonica.com/documentation/using-xsl/intro.html

The command line syntax is:

java net.sf.saxon.Transform [options] -s:source -xsl:stylesheet -o:output [params]

To make this easier, we have included a script /usr/bin/saxonbt which will
perform the java invocation for you using the same syntax for options
and filenames. For example...

saxonbt [options] -s:source -xsl:stylesheet -o:output [params]

Using XQuery
=====================

See the usage documentation at...

http://saxonica.com/documentation/using-xquery/intro.html

The command line syntax is:

java net.sf.saxon.Query [options] -q:queryfile | -qs:querystring [params]

To make this easier, we have included a script /usr/bin/saxonbq which will
perform the java invocation for you using the same syntax for options
and filenames. For example...

saxonbq [options] -q:queryfile | -qs:querystring [params]