zongaro     2003/02/04 07:56:52

  Modified:    java/samples/CompiledApplet Tag: XSLTC_DTM README.applet
  Log:
  Made changes to instructions to recommend listing JAR files on applet, rather
  than suggesting the user tear apart the JAR's and put them back together as a
  single JAR along with any translets.  Also mentioned a second HTML document
  example.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.16.1  +27 -17    xml-xalan/java/samples/CompiledApplet/README.applet
  
  Index: README.applet
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/samples/CompiledApplet/README.applet,v
  retrieving revision 1.1
  retrieving revision 1.1.16.1
  diff -u -r1.1 -r1.1.16.1
  --- README.applet     17 May 2001 15:36:29 -0000      1.1
  +++ README.applet     4 Feb 2003 15:56:52 -0000       1.1.16.1
  @@ -1,9 +1,9 @@
   ======================================================================
  -The Sun XSLT Compiler (XSLTC) is a Java-based tool for compiling XSL
  -stylesheets into extremely lightweight and portable Java byte code.
  -The XSLTC Java Runtime environment can then process XML files against
  -these compiled stylesheets (Translets) to generate any manner of
  -output per the stylesheet instructions.
  +The Apache XSLT Compiler (XSLTC) is a Java-based tool for compiling
  +XSL stylesheets into extremely lightweight and portable Java byte
  +code.  The XSLTC Java Runtime environment can then process XML files
  +against these compiled stylesheets (Translets) to generate any manner
  +of output per the stylesheet instructions.
   
   This Applet Demo shows you how translets can be run in a client 
   browser as Java applets to perform XSLT transformations on XML 
  @@ -12,7 +12,7 @@
   (translets) and the runtime classes in the applet. Whereas, this
   would not be easy with a fullsize Java-based XSLT processor. 
   
  -There are two important advatages of this approach: 
  +There are two important advantages of this approach: 
   
     1) It offloads XSLT processing from the server
     2) It enables browsers, such as Netscape 4.x, that do not have native 
  @@ -33,6 +33,11 @@
     menu.html  - The HTML document for your dialog frame. This is the
         document that invokes the TransformApplet
   
  +
  +  singleTransform.html
  +             - Another main HTML document that invokes the applet using
  +      two <param> tags to specify the input document and stylesheet URI
  +
   -----------------------------------------------------------------------
   HOW TO SET UP THE DEMO ON YOUR SITE
   -----------------------------------------------------------------------
  @@ -41,25 +46,30 @@
   2. Compile the stylesheets you want to export. This will result in one
      or more small Java classes (translets).
   
  -3. Create a JAR file with your the applet class (compile it first, of
  -   cource), your translet classes and these classes from the xalan/xsltc
  -   package:
  -
  -     org/apache/xalan/xsltc/*.class
  -     org/apache/xalan/xsltc/dom/*.class
  -     org/apache/xalan/xsltc/runtime/*.class
  -     org/apache/xalan/xsltc/util/*.class
  +3. Create a JAR file containing your translet classes.  Include a file
  +   named META-INF/services/javax.xml.transform.TransformerFactory in
  +   your JAR file that contains the following line:
  +
  +       org.apache.xalan.xsltc.trax.TransformerFactoryImpl
   
      Be sure to make the JAR file world readable!
   
  -4. Make your XML source documents readable through a URL (either place
  +4. Copy the JAR file containing your translet classes and the following
  +   JAR files to the same directory containing index.html:  xalan.jar,
  +   xml-apis.jar, xercesImpl.jar and xsltcapplet.jar.
  +
  +5. Make your XML source documents readable through a URL (either place
      them behind a web server or make them readable for your browser as
      a file).
   
  -5. Open the supplied index.html and try out the demo!
  +6. Open the supplied index.html and try out the demo!  Alternatively,
  +   open the singleTransform.html, with the value attribute of the
  +   "input-document" <param> tag set to the URI of your input document,
  +   and the value attribute of the "stylesheet-name" <param> tag set to
  +   the URI of the stylesheet.
   
   ----------------------------------------------------------------------
  -KNOW PROBLEMS
  +KNOWN PROBLEMS
   ----------------------------------------------------------------------
   The following problems are specific to the Netscape 4.x browser.
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to