You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dl...@locus.apache.org on 2000/02/24 23:22:06 UTC

cvs commit: xml-xalan/xdocs/sources/xalan commandline.xml extensions.xml getstarted.xml overview.xml readme.xml resources.xml samples.xml usagepatterns.xml

dleslie     00/02/24 14:22:05

  Modified:    xdocs/sources/xalan commandline.xml extensions.xml
                        getstarted.xml overview.xml readme.xml
                        resources.xml samples.xml usagepatterns.xml
  Log:
  Revisions per Dave Marson's comments.
  
  Revision  Changes    Path
  1.4       +4 -4      xml-xalan/xdocs/sources/xalan/commandline.xml
  
  Index: commandline.xml
  ===================================================================
  RCS file: /home/cvs/xml-xalan/xdocs/sources/xalan/commandline.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- commandline.xml	2000/02/22 21:11:52	1.3
  +++ commandline.xml	2000/02/24 22:21:58	1.4
  @@ -68,9 +68,9 @@
       for performing XSL transformation. To perform a transformation from the command line or a script,
       do the following:</p>
    		<ol>
  -    <li>Install &xslt4j;. See <resource-ref idref="Installation"/>.<br/><br/></li> 
  -    <li>Set the java Classpath to include xalan.jar and xerces.jar. See <link idref="getstarted"
  -     anchor="classpath">Setting the class path</link><br/><br/></li>
  +    <li><link idref="getstarted" anchor="download">Download &xslt4j;</link>. See <resource-ref idref="Installation"/>.<br/><br/></li> 
  +    <li><link idref="getstarted"
  +     anchor="classpath">Set the java classpath</link> to include xalan.jar and xerces.jar<br/><br/></li>
       <li>Call java and the Process class with the appropriate flags and
       arguments (described below). The following command line, for example, includes the -IN, -XSL,
       and -OUT flags with their accompanying arguments -- the XML source document, the XSL
  @@ -107,7 +107,7 @@
         <p>Include -PARSER if you supply your own parser liaison class, which is required
         if you do not use the &xml4j; parser.</p>
         <p>Use -TEXT if you want the output to include only element values (not element tags with element names and
  -      attributes). Use -HTML to write 4.0 transitional HTML (some elements, such as ltxxbr&gt;, are
  +      attributes). Use -HTML to write 4.0 transitional HTML (some elements, such as &lt;br&gt;, are
         not well formed.</p>
         <p>To set stylesheet parameters from the command line, use -PARAM name expression. If 
         you want to set the parameter to a string value, enclose the string in single quotes (') to
  
  
  
  1.2       +6 -6      xml-xalan/xdocs/sources/xalan/extensions.xml
  
  Index: extensions.xml
  ===================================================================
  RCS file: /home/cvs/xml-xalan/xdocs/sources/xalan/extensions.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- extensions.xml	2000/02/04 14:39:50	1.1
  +++ extensions.xml	2000/02/24 22:21:58	1.2
  @@ -19,7 +19,7 @@
   <li>Examples: <link anchor="ex-basic">basic JavaScript example</link>, <link anchor="ex-redirect">the Redirect extension</link>, <link anchor="ex-java-namespace">using the java namespace</link>, <link anchor="ex-java">using a Java Hashtable</link>, <link anchor="ex-javascript">using a JavaScript array</link></li>
   </ul><anchor name="intro"/>
     <s2 title="Introduction">
  -  <p>For those situations where you would like to augment the functionality of XSLT with calls to a procedural language, &xslt4j; supports the creation and use of extension elements and extension functions. An extension (a collection of elements and functions) inhabits a namespace, either a namespace you declare and designate as an extensions namespace, or the predefined java namespace that &xslt4j; provides.</p>
  +  <p>For those situations where you would like to augment the functionality of XSLT with calls to a procedural language, &xslt4j; supports the creation and use of extension elements and extension functions. An extension (a collection of elements and functions) inhabits a namespace, either a namespace you declare and designate as an extensions namespace, or the predefined java namespace that &xslt4j; provides. For information about XML namespaces, see <jump href="http://www.w3.org/TR/REC-xml-names/">Namespaces in XML</jump>.</p>
   
   <p><em>Extension elements</em>  Unlike a literal result element, which the stylesheet simply transfers to the result tree, an extension element performs an action. For example, you can use the Redirect extension elements shipped with &xslt4j; to redirect portions of your transformation output to one or more files. Extension elements may contain attributes, text nodes, other elements, basically any form of the content you can place in an XML element. Extension elements may perform quite sophisticated actions, given that the extension routine has direct access to the XSL processor context object and to the element. In many cases the implementation returns void or null; if it does return a value, that value is placed in the transformation result.</p>
   
  @@ -163,7 +163,7 @@
   <p>In the stylesheet element:</p> 
   <p><code>extension-element-prefixes="<ref>prefix-1 prefix-2 ...</ref>"</code></p>
   <p>In a literal result element or extension element include the xsl prefix:</p>
  -<p><code>xsl:extension-element-prefixes="<ref>prefix1 prefix 2 ...</ref>"</code></p>
  +<p><code>xsl:extension-element-prefixes="<ref>prefix1 prefix2 ...</ref>"</code></p>
   <p>Keep in mind that where you declare namespaces and designate extension prefixes determines the scope of those namespaces.To make your extensions available throughout the stylesheet, include these settings and attribute in the stylesheet element.</p>
   <p>By default, namespace declarations are included in the transformation output. To exclude namespaces from the output, use</p>
   <p><code>exclude-result-prefixes="<ref>prefix-1 prefix-2 ...</ref>"</code></p>
  @@ -178,7 +178,7 @@
      <code>&nbsp;&nbsp;&nbsp;&nbsp;elements="<ref>elem-1 elem-2 ...elem-n</ref>"&gt;</code><br/>
      <code>&nbsp;&nbsp;&lt;!--See lxslt:script below--&gt;</code><br/>
      <code>&lt;/xslt:component&gt;</code></p>
  -<p>where <ref>func-1 func-2 ... func-n</ref> and <ref>elem-1 elem-2 elem-n</ref> designate the functions and elements the extension provides and the stylesheet uses. You can use the function-available and element-available functions to determine at run time whether a function or element designated in the xslt:component is actually available.</p>
  +<p>where <ref>func-1 func-2 ... func-n</ref> and <ref>elem-1 elem-2 ... elem-n</ref> designate the functions and elements the extension provides and the stylesheet uses. You can use the function-available and element-available functions to determine at run time whether a function or element designated in the xslt:component is actually available.</p>
   <note>If your extension namespace is a fully qualified class name, you do not need to include the xslt:component. If you do not include it, you cannot use the function-available and element-available functions to determine whether a given element or function is actually available at runtime.</note>
   </s3>
   <s3 title="5. Set up the lxslt:script element">
  @@ -228,7 +228,7 @@
   </s3>
   <s3 title="The Redirect extension">
   <p>The Redirect extension (<jump href = "apidocsorg/apache/xalan/xslt/extensions/Redirect.html">org.apache.xalan.xslt.extensions.Redirect</jump>) is shipped with &xslt4j; (more extensions are on the way!).</p>
  -<p>A standard XSL transformation involves three parameters: the XML source tree, an XSL stylesheet, and the transformation result tree. Whether, the result tree is output to a file, a character stream, a byte stream, a DOM, or a SAX document handler, the initial transformation sends the entire result to a single target, represented by the <resource-ref idref="XSLTResultTargetDoc"/>.</p> 
  +<p>A standard XSL transformation involves three parameters: the XML source tree, an XSL stylesheet, and the transformation result tree. Whether the result tree is output to a file, a character stream, a byte stream, a DOM, or a SAX document handler, the initial transformation sends the entire result to a single target, represented by the <resource-ref idref="XSLTResultTargetDoc"/>.</p> 
   <p>The Redirect extension supplies three extension elements that you can use to redirect portions of your transformation output to multiple files: &lt;open&gt;, &lt;write&gt;, and &lt;close&gt;. If you use the &lt;write&gt; element alone, the extension opens a file, writes to it, and closes the file immediately. If you want explicit control over the opening and closing of files, use &lt;write&gt; in conjunction with the &lt;open&gt; and &lt;close&gt; elements.</p>
   <p>Each of these elements includes a file attribute and/or a select attribute to designate the output file. The file attribute takes a string, so you can use it to directly specify the output file name; The select attribute takes an XPath expression, so you can use it to dynamically generate the output file name. If you include both attributes, the Redirect extension first evaluates the select attribute, and falls back to the file attribute if the select attribute expression does not return a valid file name.</p>
   </s3><anchor name="ex-redirect"/> 
  @@ -342,7 +342,7 @@
   <p><code><ref>prefix</ref>:<ref>FQCN.methodName</ref> (<ref>args</ref>)</code></p>
   <p>where <ref>FQCN</ref> is the fully qualified class name whose static method <ref>methodName</ref> is to be invoked using the <ref>args</ref> arguments.<br/>
   Example: <code>variable new-pop</code><br/>
  -<code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select="my-ext:java.lang.Integer.valueOf(string(@population)"</code></p>
  +<code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select="my-ext:java.lang.Integer.valueOf(string(@population))"</code></p>
   
   <p><code><ref>prefix</ref>:<ref>methodName</ref> (<ref>object</ref>, <ref>args</ref>)</code></p>
   <p>where <ref>methodName</ref> is the name of the method to invoke on <ref>object</ref> with the <ref>args</ref> arguments.<br/>
  @@ -410,7 +410,7 @@
     <li>The exclude-result-prefixes stylesheet attribute prevents the java namespace declaration from
      appearing in the output.</li>
     <li>The XSLT type returned by any LocationPath expression is node-set, so the XSLT string
  -    function is used to convert the format, year, month, and day attribute node-set values to
  +    function is used to convert the format, year, month, and day attribute values from node-sets to
       strings.</li>
     <li>The format attribute provides a String argument for constructing a java.text.SimpleDateFormat
       object.</li>
  
  
  
  1.4       +7 -7      xml-xalan/xdocs/sources/xalan/getstarted.xml
  
  Index: getstarted.xml
  ===================================================================
  RCS file: /home/cvs/xml-xalan/xdocs/sources/xalan/getstarted.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- getstarted.xml	2000/02/15 21:35:29	1.3
  +++ getstarted.xml	2000/02/24 22:21:58	1.4
  @@ -7,23 +7,23 @@
   <li><link anchor="classpath">Setting up the system class path</link></li>
   <li><link anchor="samples">Trying out the samples</link></li>
   <li><link anchor="commandline">Performing your own transformations from the command line</link></li>
  -<li><link anchor="java-apps">Creating your own XSLT applications</link></li>
  +<li><link anchor="java-apps">Setting up your own XSLT applications</link></li>
   </ul>
   <anchor name="download"/>
   <s2 title="Downloading what you need">
   <p>To use Xalan, you need the following:</p>
   <ul>
  -<li>The JDK or JRE 1.1.6 or later</li>
  +<li>The JDK or JRE 1.1.8 or 1.2.2</li>
   <li>xalan.jar</li>
   <li>xerces.jar</li>
   </ul>
  -<p>You can get the Sun JDK or JRE from <jump href="http://www.java.sun.com">java.sun.com</jump>. Download the latest release of Xalan and Xerces-java from <jump href="http://xml.apache.org/dist/">xml.apache.org</jump>. Check the <link idref="readme" anchor="status">version release notes</link> to verify that you are using the correct version of Xerces. <em>Important</em> You may experience unpredicable difficulties and anomalies if your &xslt4j; and &xml4j; builds are not in synch. You can use &xslt4j; with some other XML parser, but it is up to you to implement a liaison to that parser. Your liaison class should extend org.apache.xalan.xpath.xml.XMLParserLiaisonDefault and implement org.apache.xalan.xpath.XPathSupport.</p>
  +<p>You can get the Sun JDK or JRE from <jump href="http://www.java.sun.com">java.sun.com</jump>. Download the latest release of Xalan and Xerces-java from <jump href="http://xml.apache.org/dist/">xml.apache.org</jump>. Check the <link idref="readme" anchor="status">version release notes</link> to verify that you are using the correct version of Xerces. <em>Important</em> You may experience unpredictable anomalies if your &xslt4j; and &xml4j; builds are not in synch. You can use &xslt4j; with some other XML parser, but it is up to you to implement a liaison to that parser. Your liaison class should extend org.apache.xalan.xpath.xml.XMLParserLiaisonDefault and implement org.apache.xalan.xpath.XPathSupport.</p>
   <note>You may also download the latest releases of LotusXSL and the XML Parser for Java from <jump href="http://www.alphaworks.ibm.com/tech/LotusXSL">alphaWorks</jump>. LotusXSL and the XML Parser for Java are Xalan and Xerces-java respectively, along with additional features and with wrappers to support the core API in place on alphaWorks before the first releases of Xalan and Xerces-java on xml.apache.org in November 1999. The alphaWorks LotusXSL release also provides continued support for earlier alphaWorks releases of the XML4J DOM and TXDOM parsers.</note>
   <p>If you plan to run <link idref="extensions">XSLT extensions</link>. you need bsf.jar and bsfengines.jar, both of which are included in the Xalan distribution. If you plan to run XSLT extensions implemented in JavaScript or another scripting language, you will need one or more additional files as indicated in <link idref="extensions" anchor="supported-lang">extensions language requirements</link>.</p>
   </s2><anchor name="classpath"/>
   <s2 title="Setting up the system class path">
   <p>At the very minimum, you must include xalan.jar and xerces.jar on the system class path. To run the sample applications, include xalansamples.jar To run extensions, include bsf.jar and bsfengines.jar. All these JAR files are distributed with &xslt4j;. For extensions implemented in JavaScript or another scripting language, see <link idref="extensions" anchor="supported-lang">extensions language requirements</link> to identify any additional JAR files you must place on the class path and where you can get them.</p>
  -<p>If you are using JDK or JRE 1.1.x (at least 1.1.7, please), also include classes.zip on the class path.</p>
  +<p>If you are using JDK or JRE 1.1.8, also include classes.zip on the class path.</p>
   </s2><anchor name="samples"/>
   <s2 title="Trying out the samples">
   <p>The Xalan distribution includes a number of basic sample applications. These samples are easy to run, and you can review the source files -- all of which are brief -- to see just how they work.</p>
  @@ -32,7 +32,7 @@
   <li>Set up your class path (see above), including xalansamples.jar.</li>
   <li>Be sure java.exe is on your path.</li>
   <li>Go to the samples subdirectory containing the sample (use the DOS shell if you are running Windows).</li>
  -<li>Run the sample from the command line.</li>
  +<li>Use java.exe to run the sample from the command line.</li>
   <li>Examine the application source files.</li>
   </ol>
   <p>For example, go to the SimpleTransformation subdirectory and issue the following command:</p>
  @@ -53,7 +53,7 @@
   <p>You can start by using your own XML source files and XSL stylesheets with the sample applications, which illustrate a number of the <link anchor="usage-patterns">basic usage patterns</link>.</p>
   <p>If you modify a java source file, be sure to compile the class and place it on the system class path. Here are some basic points to keep in mind as you are setting up transformations:</p>
   <ul>
  -<li>Use one of the <resource-ref idref="XSLTProcessorFactoryDoc"/> static getProcessor methods to set up an <resource-ref idref="XSLTProcessorDoc"/>. <br/><br/>By default, the XSLTProcessor uses the <resource-ref idref="DTMLiaisonDoc"/> and the high-performance <link idref="dtm"> Document Table Model (DTM)</link>"pseudo" DOM parser to process the input.  If your input is a DOM node (rather than a file, character stream, byte stream, or SAX input stream), you must use a "standard" DOM liaison and parser, such as the <resource-ref idref="XercesLiaisonDoc"/> and the Xerces DOM parser. For an example, see <link anchor="dom-in">Processing DOM input</link>.<br/><br/></li>
  +<li>Use one of the <resource-ref idref="XSLTProcessorFactoryDoc"/> static getProcessor methods to set up an <resource-ref idref="XSLTProcessorDoc"/>. <br/><br/>By default, the XSLTProcessor uses the <resource-ref idref="DTMLiaisonDoc"/> and the high-performance <link idref="dtm"> Document Table Model (DTM)</link> "pseudo" DOM parser to process the input.  If your input is a DOM node (rather than a file, character stream, byte stream, or SAX input stream), you must use a "standard" DOM liaison and parser, such as the <resource-ref idref="XercesLiaisonDoc"/> and the Xerces DOM parser. For an example, see <link anchor="dom-in">Processing DOM input</link>.<br/><br/></li>
   <li>Set up <resource-ref idref="XSLTInputSourceDoc"/> objects for the XML input and XSL stylesheet. You can use a file name or URL, character streams, byte streams, or SAX input stream to instantiate an XSLTInputSource object.<br/><br/>
   If the XML document contains a stylesheet Processing Instruction (PI), you do not need to create a separate
   XSLTInputSource object for an XSL stylesheet.<br/><br/></li>
  @@ -62,7 +62,7 @@
   instance, when you need to find out the output encoding in order to construct the right kind of Writer.
   You must also compile the stylesheet if you are using the XSLTProcessor as a SAX document handler.<br/><br/></li>
   <li>Set up an <resource-ref idref="XSLTResultTargetDoc"/> for the transformation output. You can use a file name or URL, character stream, byte stream, or SAX document handler to instantiate an XSLTOutputTarget object.<br/><br/></li>
  -<li>Use the XSLTProcessor (or, in some cases, the <link idref="StylesheetRootDoc"/>) process method to perform the transformation.<br/><br/>
  +<li>Use the XSLTProcessor (or, in some cases, the <resource-ref idref="StylesheetRootDoc"/>) process method to perform the transformation.<br/><br/>
   &xslt4j; is thread-safe for one instance per thread. If you are using the same instance of XSLTProcessor to perform
   more than one transformation, call the reset method between transformations.</li>
   </ul>
  
  
  
  1.5       +17 -9     xml-xalan/xdocs/sources/xalan/overview.xml
  
  Index: overview.xml
  ===================================================================
  RCS file: /home/cvs/xml-xalan/xdocs/sources/xalan/overview.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- overview.xml	2000/02/17 12:51:17	1.4
  +++ overview.xml	2000/02/24 22:21:59	1.5
  @@ -75,9 +75,10 @@
       <note>XSL also includes a formatting vocabulary, which is still under design and is not part of &xslt4j;. 
       For more information, see <jump href="http://www.w3.org/TR/xsl/">W3C XSL Working Draft</jump> and the <jump
       href="http://xml.apache.org/fop">Apache XML FOP (Formatting Objects Project)</jump>.</note>
  -    <p>You use XSLT to compose stylesheets (themselves XML documents) for transforming XML documents into other XML
  -    documents, HTML documents, or other document types. In structural terms, an XSLT stylesheet specifies the transformation
  -    of one tree of nodes (the XML input) into another tree of nodes (the output or transformation result).</p>
  +    <p>You use the XSLT language to compose XSL stylesheets. Itself an XML document, an XSL stylesheet contains instructions for
  +     transforming a range of XML documents into other XML documents, HTML documents, or other document types. In structural
  +     terms, an XSLT stylesheet specifies the transformation of one tree of nodes (the XML input) into another tree of nodes 
  +     (the output or transformation result).</p>
       <note>The XSLT stylesheet may include cascading style sheets (CSS) in the result.</note> 
       <p>In the following example, the foo.xsl stylesheet is used to transform foo.xml into foo.out:</p>
       <p>foo.xml:</p>
  @@ -94,11 +95,12 @@
   <source>&lt;out>Hello&lt;/out></source>
   <p>By default, &xslt4j; uses a high-performance <link idref="dtm">Document Table Model (DTM)</link> to parse the input -- XML documents and XSL stylesheets, but it can be set to use the &xml4j; XML parser, and it can be adapted to work with other DOM-producing mechanisms and SAX document handlers. The input may appear in the form of a file, a character stream, a byte stream, a DOM, or a SAX input stream.</p>
   <p>&xslt4j; performs the transformations specified in the XSL stylesheet and produces a document file, a character
  - stream, a byte stream, a DOM, or a series of SAX events, as you specify when you set up the transformation.</p>
  + stream, a byte stream, a <resource-ref idref="DOM"/>, or a series of <resource-ref idref="SAX"/> events, as you specify when you set up the transformation.</p>
         </s2><anchor name="features"/>
      	  <s2 title="&xslt4j; Features">
   	    <ul> 
  -		    <li>Implements the <resource-ref idref="xsl-draft-used"/>.</li> 
  +		    <li>Implements the <resource-ref idref="xsl-draft-used"/></li> 
  +        <li>Incorporates the <resource-ref idref="xpath"/></li>
       	  <li>Uses <jump href="http://xml.apache.org/xerces-j/index.html">&xml4j;</jump> 
           (and <jump href="http://www.alphaworks.ibm.com/tech/xml4j">the alphaWorks XML Parser for Java</jump>)</li>
       	  <li>Can interface to a SAX document handler or to any XML parser that produces Java DOM Trees</li>
  @@ -106,7 +108,7 @@
           <li>May be run from the <link idref="commandline">command line</link></li>
       	  <li>Includes an <link idref="getstarted" anchor="applet">applet wrapper</link></li>
           <li>May be used in a <link idref="samples" anchor="servlet">servlet</link> to transform XML documents into HTML
  -         and serve the results to clients.</li>
  +         and serve the results to clients</li>
           <li>Supports <link idref="extensions">Java and scripting language extensions</link></li>
           <li>Provides <link idref="extensions" anchor="redirect">an extension to support the production of multiple 
           output documents in a single operation</link></li>
  @@ -136,8 +138,9 @@
        <li>OASIS (the Organization for the Advancement of Structured Information Standards): 
        <jump href="http://www.oasis-open.org/cover/xsl.html">Extensible Stylesheet Language (XSL)</jump> by Robin
        Cover</li>
  +     <li>Donald Ball's <jump href="http://www.webslingerZ.com/balld/xsl/designer_manual.xml">A Guide to XML and XSL for Designers</jump></li>
       </ul>
  -    <p>When you come across other useful introductionary or background materials, please email <human-resource-ref
  +    <p>When you come across other useful introductory or background materials, please email <human-resource-ref
        idref="dleslie"/>, so he can add them to this list.</p>
        
       </s2><anchor name="glossary"/>
  @@ -146,6 +149,10 @@
           <label>XSL Instruction</label>
           <item>Any tag with an XSL namespace prefix.<br/><br/></item>
           
  +        <label>Template</label>
  +        <item>An element, usually with child elements, that specifies a "rule" or set of 
  +        instructions to perform when a particular kind of node is encountered in the source tree.<br/><br/></item>
  +                
           <label>XSL Template Instruction</label>
           <item>Any tag with an XSL namespace prefix
               that occurs inside an xsl:template element.<br/><br/></item>
  @@ -162,8 +169,9 @@
           <label>Stylesheet Tree</label>
           <item>The stylesheet tree produced from the XSL file.<br/><br/></item>
           
  -        <label>Pattern List</label>
  -        <item>A parsed query or match pattern.<br/><br/></item>
  +        <label>Match Pattern</label>
  +        <item>The part of a template that defines the kind(s) of nodes to which the template applies.<br/><br/></item>
  +
         </gloss>
         <p>For more definitions of XSLT terminology, see Dave Lawson's 
         <jump href="http://freespace.virgin.net/b.pawson/xsl/xslvocab.html#top">XSLT Terminology
  
  
  
  1.3       +2 -2      xml-xalan/xdocs/sources/xalan/readme.xml
  
  Index: readme.xml
  ===================================================================
  RCS file: /home/cvs/xml-xalan/xdocs/sources/xalan/readme.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- readme.xml	2000/02/15 21:35:29	1.2
  +++ readme.xml	2000/02/24 22:21:59	1.3
  @@ -68,7 +68,7 @@
    </ul>
     <s2 title="Status">
      <ul>
  -    <li><link anchor="status">Version of &xml4j; to use</link></li>
  +    <li><link anchor="status">Version of Xerces to use</link></li>
       <li><link anchor="done">Bug fixes</link></li>
       <li><link anchor="bugs">Outstanding bugs</link></li>
      </ul>
  @@ -139,7 +139,7 @@
          <li>To build doc in a build/docs subdirectory, run StyleBook from the xdocs directory as follows:<br/><br/>
   <code>java org.apache.stylebook.StyleBook "targetDirectory=../build/docs/" sources/xalanLocal.xml style</code>
          <br/><br/></li>
  -       <li>To build the html source files that javadoc needs for top-level and package-level documentation, run
  +       <li>To build the HTML source files that javadoc needs for top-level and package-level documentation, run
           StyleBook from the xdocs directory as follows:<br/><br/>
           <code>java org.apache.stylebook.StyleBook "loaderConfig=sbk:/style/loaderjdoc.xml" targetDirectory=../src sources/javadocPackages.xml style</code><br/><br/></li>
           <li>Before you run javadoc, make sure the following directory structure exists under the Xalan root
  
  
  
  1.4       +2 -4      xml-xalan/xdocs/sources/xalan/resources.xml
  
  Index: resources.xml
  ===================================================================
  RCS file: /home/cvs/xml-xalan/xdocs/sources/xalan/resources.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- resources.xml	2000/02/22 21:11:51	1.3
  +++ resources.xml	2000/02/24 22:21:59	1.4
  @@ -30,14 +30,12 @@
     
     <resource id="xsl-draft-used" title="W3C Recommendation 16 November 1999 XSL Transformations (XSLT) Version 1.0" location="http://www.w3.org/TR/1999/REC-xslt-19991116"/>
     
  -  
  -  <resource id="xpath-draft-used" title="W3C Working Draft 9 August 1999 XML Path Language (XPath)" location="http://www.w3.org/1999/08/WD-xpath-19990813"/>
  -  
  +  <resource id="XPath" title="XML Path Language (XPath) Version 1.0" location="http://www.w3.org/TR/xpath"/>
       
     <resource id="xsl-draft-latest" title="XSLT World Wide Web Consortium (W3C) XSL Transformations (XSLT) Specification" location="http://www.w3.org/TR/WD-xslt"/>
     <resource id="DOM-draft-august" title="August 18 Document Object Model (DOM) Level 1 Specification" location="http://www.w3.org/TR/1998/PR-DOM-Level-1-19980818/"/>
     <resource id="DOM-draft-october" title="October 1 Document Object Model (DOM) Level 1 Specification" location="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001"/>
  -  <resource id="DOM-draft-latest" title="Latest DOM" location="http://www.w3.org/TR/PR-DOM-Level-1 "/>
  +  <resource id="DOM" title="DOM" location="http://www.w3.org/TR/PR-DOM-Level-1"/>
   
       
     <resource id="xml4j-used" title="Version 3.0.0EA3 of the XML Parser for Java" location="http://www.alphaworks.ibm.com/tech/xml4j"/>    
  
  
  
  1.5       +6 -5      xml-xalan/xdocs/sources/xalan/samples.xml
  
  Index: samples.xml
  ===================================================================
  RCS file: /home/cvs/xml-xalan/xdocs/sources/xalan/samples.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- samples.xml	2000/02/17 12:51:17	1.4
  +++ samples.xml	2000/02/24 22:22:00	1.5
  @@ -14,7 +14,7 @@
   <li><link anchor="xpath">ApplyXPath</link></li>
   <li><link anchor="pipe">Pipe (SAX)</link></li>
   <li><link anchor="extensions">Extensions</link></li>
  -<li><link anchor="applet">Applet</link></li>
  +<li><link anchor="AppletXMLtoHTML">Applet</link></li>
   <li><link anchor="servlet">Servlet</link></li>
   </ul>       
   	  <s2 title="Samples to help you get started">
  @@ -59,13 +59,14 @@
          and prints the output to System.out. The stylesheet parameter appears as a text node in the output.</p>
       <p>Run this sample from the UseStylesheetParam subdirectory with</p> 
       <p><code>java UseStylesheetParam <ref>param</ref></code></p>
  -    <p>where <ref>param</ref> is the stylesheet parameter.</p>  
  +    <p>where <ref>param</ref> is the stylesheet parameter (a string of your choice).</p>  
       </s2><anchor name="xpath"/>
       <s2 title="ApplyXPath">
       <p>What it does: The ApplyXPath class executes an XPath expression against an XML document and returns
        information about the route it takes and the nodes (if any) it finds.</p>
        <note>You can use this sample as an aid when you want to find out what a given XPath expression returns from a
  -     given XML file. Keep in mind that the context node for the XPath expression is the document root.</note>
  +     given XML file. Keep in mind that the context node (base point of evaluation) for the XPath expression is the document
  +     root.</note>
       <p>Run this sample from the ApplyXPath subdirectory with</p> 
       <p><code>java ApplyXPath <ref>XMLFile XPathExpression</ref></code></p>
       <p>where <ref>XMLFile</ref> is an XML source file and <ref>XPathExpression</ref> is an XPath expression to
  @@ -75,7 +76,7 @@
       <p>and</p>
       <p><code>java ApplyXPath foo.xml /doc/name/@first</code></p>
       </s2><anchor name="pipe"/>
  -    <s2 title="Pipe">
  +    <s2 title="Pipe (SAX)">
       <p>What it does: The Pipe class uses the output of the first transformation as input to a second
        transformation.</p>
        <p>The first transformation produces a sequence of SAX events which the second transformation processes with
  @@ -91,7 +92,7 @@
        extensions implemented in JavaScript, and two of the samples use extensions implemented in Java. All of
        the samples are documented in <link idref="extensions">Extensions</link>.</p>
        <p>To run these examples, you must place bsf.jar and bsfengines.jar (distributed with &xslt4j;), and js.jar
  -     (available from http://www.mozilla.org/rhino) on the class path. You do not need js.jar
  +     (available from <jump href="http://www.mozilla.org/rhino">http://www.mozilla.org/rhino</jump>) on the class path. You do not need js.jar
        on the class path for the samples that use Java extensions. </p>
        <p>Use java.org.apache.xalan.xslt.Process, the &xslt4j; command-line utility, to run these samples from
         the <link idref="commandline">command line</link>. The command line must include an -in flag with the 
  
  
  
  1.2       +4 -4      xml-xalan/xdocs/sources/xalan/usagepatterns.xml
  
  Index: usagepatterns.xml
  ===================================================================
  RCS file: /home/cvs/xml-xalan/xdocs/sources/xalan/usagepatterns.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- usagepatterns.xml	2000/02/15 21:35:30	1.1
  +++ usagepatterns.xml	2000/02/24 22:22:00	1.2
  @@ -76,14 +76,14 @@
   
     <s2 title="Introduction">  
   <p>&xslt4j; takes as primary input an XML source document and an XSL stylesheet, both represented by instances of the <resource-ref idref="XSLTInputSourceDoc"/>. You can use a URL or file, a character stream, a byte stream, a DOM tree, or a SAX input source to create an XSLTInputSource object. The stylesheet may also take the form of a compiled stylesheet (an instance of the <resource-ref idref="StylesheetRootDoc"/>. If the XML document contains a stylesheet Processing Instruction (PI), a separate stylesheet is not required.</p>
  -<p>&xslt4j; uses an implementation of the <resource-ref idref="XMLParserLiaisonDoc"/> to interact with an XML parser and sends the output to <resource-ref idref="XSLTResultTargetDoc"/>. Unless your ar processing a DOM, you probably want to use the default <link idref="dtm">Document Table Model (DTM)</link> liaison and XML parser. When you process DOM input, you can use the <resource-ref idref="XercesLiaisonDoc"/> along with the &xml4j; XML parser.</p>
  +<p>&xslt4j; uses an implementation of the <resource-ref idref="XMLParserLiaisonDoc"/> to interact with an XML parser and sends the output to <resource-ref idref="XSLTResultTargetDoc"/>. Unless your are processing a DOM, you probably want to use the default <link idref="dtm">Document Table Model (DTM)</link> liaison and XML parser. When you process DOM input, you can use the <resource-ref idref="XercesLiaisonDoc"/> along with the &xml4j; XML parser.</p>
   <p>The XSLT and XPath engines are independent of any given DOM or XML implementation. All parser-dependent
   calls are funneled through the XMLParserLiaison.</p>
   <p>For detailed API documentation (javadoc), see <resource-ref idref="APIDocumentation"/>. For an overview of the
   command-line utility, see <link idref="commandline">Command-Line Utility</link>.</p>     
   </s2>
   <anchor name="files"/>
  -<s2 title="Using XML source, XSL stylesheet, and output files">
  +<s2 title="Using a stylesheet file to transform an XML source file into an output file">
   <p>Use an XML file and an XSL file to instantiate XSLTInput objects, create a processor with the default DTM liaison, and send the transformation output to an output file. For example:</p>
   <source>public static void Transform(String xmlSourceURL, String xslURL, String outputURL)
     throws java.io.IOException, 
  @@ -121,7 +121,7 @@
   </s2><anchor name="params"/>
   <s2 title="Setting stylesheet parameters">
   <p>An XSL stylesheet can include parameters that get set at run time when a transformation takes place. When we generate the HTML documents that make up the Xalan doc set, for example, we send the stylesheet an id parameter along with each XML source document. The id identifies that document and enables the stylesheet to integrate it into the overall doc set.</p>
  -<p>To set a stylesheet parameter, use the XSLTProcessor setStylesheetParam(String paramName, String paramExpr) method. paramExpr is an XPath expression, so if the parameter is a String, enclose it in single quotes to make it a String expression.</p>
  +<p>To set a stylesheet parameter, use the XSLTProcessor setStylesheetParam(String key, String expression) method, where key is the parameter name and expression is an XPath expression. If the parameter is a String, enclose it in single quotes to make it a String expression.</p>
   <p>You can also use setStylesheetParam(String key, XObject value). This option is useful when you are working with the XPath API. For example, you could use the XObject returned by an Xpath function to set a parameter.</p>
   <p>From the <link idref="commandline">command line</link>, include a -param argument. For example:</p>
   <p><code>java org.apache.xalan.xsltProcess -in foo.xml -xsl foo.xsl -param 'boo'</code></p>
  @@ -148,7 +148,7 @@
   <p>If you want to use the XSLTProcessor as a SAX document handler, you must provide the processor a compiled stylesheet. See <link anchor="sax">Generating and Responding to SAX events</link>.</p>
   </s2><anchor name="dom-in"/>
   <s2 title="Processing DOM input">
  -<p>The XML source and XSL stylesheet for a transformation may appear in the form of a DOM Node. To perform transformations with DOM input, you cannot use the default high-performance DTM liaison and parser. <link idref="dtm">DTM (Document Table model)</link> uses a table of integers to represent a DOM, thus avoiding much of the overhead of creating and manipulating actual DOM nodes, which often involve a large number of Java objects. If you are processing DOM input, you must use a DOM parser, such as the Xerces DOM parser. When you create the XSLTProcessor for the transformation, you must specify that it is to use the Liaison for such a DOM parser.</p>
  +<p>The XML source and XSL stylesheet for a transformation may appear in the form of a DOM Node. To perform transformations with DOM input, you cannot use the default high-performance DTM liaison and parser. <link idref="dtm">DTM (Document Table Model)</link> uses a table of integers to represent a DOM, thus avoiding much of the overhead of creating and manipulating actual DOM nodes, which often involve a large number of Java objects. If you are processing DOM input, you must use a DOM parser, such as the Xerces DOM parser. When you create the XSLTProcessor for the transformation, you must specify that it is to use the Liaison for such a DOM parser.</p>
   <p>The following code fragments illustrate the procedure for working with DOM input:</p>
   <source>import org.apache.xerces.parsers.DOMParser;
   import org.w3c.dom.Document;