dleslie     02/01/18 10:16:03

  Modified:    java/xdocs/sources/xalan samples.xml
  Log:
  In applet and servlet samples, replaced  todo.xml/todo.xsl with 
trax.xml/spec.xsl.
  
  Revision  Changes    Path
  1.42      +16 -15    xml-xalan/java/xdocs/sources/xalan/samples.xml
  
  Index: samples.xml
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/xdocs/sources/xalan/samples.xml,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- samples.xml       5 Nov 2001 19:24:34 -0000       1.41
  +++ samples.xml       18 Jan 2002 18:16:03 -0000      1.42
  @@ -67,7 +67,7 @@
   <li><link anchor="usexmlfilters">UseXMLFilters</link></li>
   <li><link anchor="applyxpath">ApplyXPath</link></li>
   <li><link anchor="appletxmltohtml">AppletXMLtoHTML</link></li>
  -<li><link anchor="get-todo-list">get-todo-list</link></li>
  +<li><link anchor="get-trax">get-trax</link></li>
   <li><link anchor="servlet">servlet</link></li>
   <li><link anchor="extensions">Extensions</link></li>
   <li><link anchor="trace">Trace</link></li>
  @@ -172,14 +172,15 @@
       <p>How to run it: Open appletXMLtoHTML.hmtl in the Internet Explorer 5 
browser.</p>
       <note>For information about running &xslt4j; applets in Netscape 
Communicator, see <link idref="usagepatterns" anchor="netscape">Problems
       with Netscape</link>.<br/><br/>
  -    Both applets look for xalan.jar and xerces.jar in the bin subdirectory. 
If you have placed these JAR files
  -    elsewhere, adjust the applet archive setting in client.html and 
get-todo-list.html accordingly.</note>
  -    </s2><anchor name="get-todo-list"/>
  -    <s2 title="get-todo-list">
  -    <p>This applet uses todo.xsl to transform todo.xml and display the 
result. The XML source (todo.xml) is a snapshot of an
  -     ongoing list of tasks and task completions for the &xslt4j2; project 
that is maintained in the xml-xalan/java
  -     subdirectory of the Apache CVS repository.</p>
  -     <p>How to run it: Open get-todo-list.html in the Internet Explorer 5 
browser.</p>
  +    Both applets look for xalan.jar, xml-apis.jar, and xercesImpl.jar 
(Xerces-J2) or xerces.jar (Xerces-J 1) in the bin 
  +    subdirectory. If you have placed these JAR files
  +    elsewhere, adjust the applet archive setting in client.html and 
get-trax.html accordingly.</note>
  +    </s2><anchor name="get-trax"/>
  +    <s2 title="get-trax">
  +    <p>This applet uses spec.xsl to transform trax.xml and display the 
result. The XML source (trax.xml) is part of a draft
  +    for the TrAX (Transformation API for XML) specification written by Scott 
Boag. It contains a useful overview of what
  +    was to become the JAXP 1.1 interface for performing XML 
transformations.</p>
  +     <p>How to run it: Open get-trax.html in the Internet Explorer 5 
browser.</p>
       </s2><anchor name="servlet"/>
       <s2 title="servlet">
      <p>For a general introduction, see <link idref="usagepatterns" 
anchor="servlet">Using &xslt4j; in a servlet</link>.</p>
  @@ -202,9 +203,9 @@
       stylesheet to apply based on the identity of the client 
browser/device.</p>
       <anchor name="simplexsltservlet"/>
       <s3 title="servlet.SimpleXSLTServlet">
  -    <p>What it does: servlet.SimpleXSLTServlet applies the todo.xsl 
stylesheet to todo.xml and returns the transformation result to the
  -    HTTP client.</p>
  -    <p>To run this servlet: place todo.xsl and todo.xml (from the 
distribution root directory) in the directory where your servlet engine
  +    <p>What it does: servlet.SimpleXSLTServlet applies the spec.xsl 
stylesheet to trax.xml (see the <link anchor="get-trax">
  +    get-trax applet</link>) and returns the transformation result to the 
HTTP client.</p>
  +    <p>To run this servlet: place spec.xsl and trax.xml (from the 
samples/AppletXMLtoHTML directory) in the directory where your servlet engine
       looks for HTTP documents, place xalanservlet.jar on the servlet engine 
classpath, and set up an HTML page to call the servlet as
       follows:</p>
   
<gloss><label>http://localhost/servlethome/servlet.SimpleXSLTServlet</label></gloss>
  @@ -242,10 +243,10 @@
        <p>What it does: servlet.XSLTServletWithParams takes parameters in the 
request -- a URL parameter for
        the XML input document URL and an xslURL parameter for the stylesheet 
URL.</p>
        <p>To use XSLTServletWithParams to perform the same transformation as 
SimplestServlet: 
  -     place todo.xsl and todo.xml in the directory where your servlet engine 
looks for HTTP documents, place
  +     place spec.xsl and trax.xml in the directory where your servlet engine 
looks for HTTP documents, place
        xalanservlet.jar on the servlet engine classpath, and set up an HTML 
page to call the servlet as follows:</p>
  
-<gloss><label>http://localhost/servlethome/servlet.XSLTServletWithParams?URL=file:todo.xml&amp;
  -xslURL=file:todo.xsl</label></gloss>
  
+<gloss><label>http://localhost/servlethome/servlet.XSLTServletWithParams?URL=file:trax.xml&amp;
  +xslURL=file:spec.xsl</label></gloss>
        <p>If the XML document contains an associated stylesheet (a stylesheet 
Processing Instruction) that you want to use, simply omit the
        xslURL parameter.</p>
        <p>If the stylesheet takes stylesheet parameters, you can include them 
in the URL. For example to set set the param1
  
  
  

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

Reply via email to