File: README

package info (click to toggle)
libxalan2-java 2.7.1-5
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 19,468 kB
  • ctags: 26,006
  • sloc: java: 175,784; xml: 28,073; sh: 164; jsp: 43; makefile: 43; sql: 6
file content (259 lines) | stat: -rw-r--r-- 9,907 bytes parent folder | download | duplicates (5)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
=======================================================================
         README FILE FOR THE SUN XSLT COMPILER
                 Preview Version 6 
                    April, 2001
=======================================================================
 * Copyright 2004 The Apache Software Foundation.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
=======================================================================

The Sun XSLT Compiler (XSLTC) is a Java-based tool for compiling XSL 
stylesheets into extremely lightweight and portable Java byte code. 
The Sun XSLTC Java Runtime environment can then process XML files 
against these compiled stylesheets (Translets) to generate any manner 
of output per the style-sheet instructions.

This preview version of the XSLT Compiler can be run on any 
platform -- including UNIX, Windows, NT, Mac -- that supports 
Java2 or later. The Translets (compiled stylesheets) can be run on any 
Java platform including a Palm Pilot with J2ME CLDC 
(Java 2 Micro Edition, Connected Limited Device Configuration). 
While the compiler itself requires Java2,translets are designed to run 
anywhere Java is available.

Almost all functions of the XLST 1.0 language are implemented; 
more than enough to show you how this new approach to XSLT works 
and its advantages! Using the samples provided, you will be able 
to see for yourself. Also, demos for the Palm Pilot, Applets, and 
Servlets are provided.

-----------------------------------------------------------------------
ATTRIBUTIONS
-----------------------------------------------------------------------
The XSLT Compiler program uses the CUP Parser Generator
for Java, Copyright 1996-1999 by Scott Hudson, Frank Flannery,
C. Scott Ananian.  For more details, please see:
http://www.cs.princeton.edu/~appel/modern/java/CUP/

The XSLT Compiler program also uses a modified version of the
Byte Code Engineering Library (BCEL), formerly known as 
(JavaClass API), Copyright 2000 Markus Dahm.

** Please note that this additional package, BCEL, is
** needed in order to generate the class files from the compiler.
** Without the BCEL package, this preview version of the
** compiler WILL NOT WORK.  BCEL is freely available for
** download as described below.

-----------------------------------------------------------------------
REQUIRED PACKAGE
-----------------------------------------------------------------------
BCEL (formerly JavaClass) by Markus Dahm has been 
used to automatically create class files from the XSLT compiler output.  
You must obtain the BCEL.jar file and install it before using the 
XSLT compiler.

The simplest way to download the BCEL.jar file from 

    http://bcel.sourceforge.net/downloads.html

is to use the "JAR file (without docs)" link.

You may want to obtain the precompiled class files and documentation.
To download them to a Unix system:

    1) Choose the "latest version (Precompiled + docs)" 
       Gzipped Tar-File or ZIP-File link.

    2) Unpack and expand the downloaded BCEL files in your 
       download directory (e.g., /usr/local).

    3) Change directory to BCEL.

    4) Create the jar file BCEL.jar.
    
       From within the BCEL directory, you can either use the 
       included GNUmakefile or create the jar yourself.
       
       To use the GNUmakefile, type the command 'make jar'.
       
       To create the jar yourself, type the command:
       
         jar cvf BCEL.jar `find de gnu -name \*.class` listclass.class

To download the precompiled class files and documentation 
to a Windows system:

    1) Choose the "latest version (Precompiled + docs)" 
       ZIP-File link.

    2) Unzip the downloaded BCEL files in your 
       download directory.

    3) Change directory to BCEL and from a DOS command line,
       type the command:

         jar -cvf BCEL.jar de\fub\bytecode\classfile\*.class
           gnu\regexp\*.class listclass.class

To complete the BCEL setup:

    1) Install XSLTC, as described in the section below,
       "HOW TO INSTALL XSLTC AND RUN THE SAMPLES."

    2) Copy the BCEL.jar file into the "lib" directory
       under your "xsltc" directory.

       You are now set to run the XSLT compiler.

------------------------------------------------------------
ADDITIONS FROM VERSION 5 (of the PREVIEW COMPILER)
------------------------------------------------------------

Support for 

	- Simplified Stylesheets
	- id() and key() in match patterns

------------------------------------------------------------
XSLT 1.0 Features Not Suported in PREVIEW VERSION 6
------------------------------------------------------------

The following XSLT 1.0 features are not yet supported:

    * Nonstatic external Java methods. 
      You may call static Java functions
      using a namespace prefix matching the class name that is 
      associated with the following URL:
      
        http://www.sun.com/xsltc/java/YourJavaClass
      
    * Namespace axis

------------------------------------------------------------
LIST OF FILES
------------------------------------------------------------

The files included in this preview package are as follows:

xsltc-1_0-alpha5-bin.zip
   <install dir>/xsltc
      LICENSE.txt           (license file)
      XSLTCprn_lg.txt       (copyright notice)
      README                (this file)
      README.api            (describes Translet API)
      README.xslt           (describes runtime command line interface)
      README.xsltc          (describes compiler command line interface)
      bin 
         xslt               (runtime for Unix)
         xsltc              (compiler for Unix)

         xslt.bat           (runtime for DOS)
         xsltc.bat          (compiler for DOS)
      demo
         README
         TransletDemo.prc (Palm Pilot install file)
      lib
         xml.jar
         xsltc.jar
         xsltcrt.jar               ('rt' = runtime)
         [BCEL.jar goes here] (see REQUIRED PACKAGE above)
      samples
         set of xml and xsl files for you to try
      src
         subset of the runtime package to complement README.api
         plus an Applet demo and a servlet demo
         com/sun/xslt/demo/servlet
             README.servlet        (describes Servlet demo)
         com/sun/xslt/demo/applet
             README.applet         (describes Applet demo)

------------------------------------------------------------
HOW TO INSTALL XSLTC AND RUN THE SAMPLES
------------------------------------------------------------

1. Unzip the files in a directory of your choice, for example
   from the user directory '/home/user1', the distribution
   zip file can be unzipped using the jar command as:

   jar xvf xsltc-1_0-alpha5-bin.zip 

   The subdirectory 'xslt' will be created in '/home/user1'.

2. Set the XSLT environment variable to point to your installation
   directory. Set your PATH environment variable to include
   the bin directory of XSLT. 

   For example, in the bash shell:
 
      export XSLT=/home/user1/xslt
      export PATH=$XSLT/bin:$PATH

3. Compile the stylesheet to produce a Java class file.

   For example, on the Unix platform, to compile the play1.xsl
   stylesheet for the play.xml document:

      cd /home/user1/xsltc/samples
      xsltc play1.xsl

   The compiled stylesheet will be in the main Java class file 
   'play1.class'

   NOTE: The 'xlstc' shell script adds the required jars to your CLASSPATH

   For example, on the Windows platform, to compile the play1.xsl
   stylesheet for the play.xml document:
   
      set classpath=c:\xsltc\samples;c:\xsltc\lib\xsltc.jar;
      c:\xsltc\lib\xsltcrt.jar;c:\xsltc\lib\xml.jar;
      c:\xsltc\lib\BCEL.jar;.
      cd c:\xsltc\samples
      java com.sun.xslt.compiler.XSLTC play1.xsl

4. Use the compiled Java class file (play1.class) to transform 
   the example XML document.

   For example, on the Unix platform:

      xslt play.xml play1

   For example, on the Windows platform:

      java com.sun.xslt.runtime.DefaultRun play.xml play1

   The result is sent to standard output.

   NOTE: When running the compiled stylesheet, you 
         just specify the name of its Java class, not its
         file name (e.g., play1, not play1.class).
         You do not include the ".class" extension, nor
         the path to the class. The class is found by means 
         of the Java CLASSPATH variable. If you run
         the translet from a directory other
         than the directory in which the compiled
         stylesheet class is located, you need to add 
         that directory to your Java CLASSPATH. Also, you
         need to remove directories from your CLASSPATH 
         for prior installations of XSLTC and any references 
         to Sun's project X parser (com.sun.xml.tree)
         installed from some other XML application/tool.
 
   NOTE: The javadocToHtml sample calls external Java methods
         from the JavadocFormatter class. Before compiling the
         javadocToHtml.xsl stylesheet, compile the 
         JavadocFormatter class using 'javac'.

------------------------------------------------------------
END OF README