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...@apache.org on 2001/08/08 17:54:26 UTC

cvs commit: xml-xalan/java/xdocs/sources/xalan samples.xml trax.xml

dleslie     01/08/08 08:54:26

  Modified:    java/xdocs/sources/xalan samples.xml trax.xml
  Log:
  Added Apache license (trax.xml) and Validate sample (samples.xml).
  
  Revision  Changes    Path
  1.37      +17 -1     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.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- samples.xml	2001/08/01 20:14:37	1.36
  +++ samples.xml	2001/08/08 15:54:26	1.37
  @@ -71,6 +71,7 @@
   <li><link anchor="servlet">servlet</link></li>
   <li><link anchor="extensions">Extensions</link></li>
   <li><link anchor="trace">Trace</link></li>
  +<li><link anchor="validate">Validate</link></li>
   <li><link anchor="trax">trax</link></li>&xsltcsampleshead;
   </ul>  
   	  <s2 title="Samples to help you get started">
  @@ -458,7 +459,22 @@
         <p><code>java Trace</code></p>
         <p>and examine the result in events.log. For more information, see <link idref="usagepatterns" anchor="debugging">Debugger
         Interface</link></p>
  -     </s2><anchor name="trax"/>
  +     </s2><anchor name="validate"/>
  +     <s2 title="Validate">
  +     <p>What it does: Uses the <jump href="apidocs\javax\xml\parsers\SAXParser.html">JAXP SAXParser</jump> with a SAX event handler 
  +     (extends <jump href="apidocs/org/xml/sax/helpers/DefaultHandler.html">DefaultHandler</jump> and implements 
  +     <jump href="apidocs/org/xml/sax/ext/LexicalHandler.html">LexicalHandler</jump>) to verify that XML files conform to their declared 
  +     document type. You can use this utility to verify that an individual file or all the .xml files in a directory are
  +     well-formed and valid. Each .xml file should contain a DOCTYPE declaration.</p>
  +     <p>Run this sample from any directory with</p>
  +     <p><code>java Validate <ref>file-or-dir-name</ref> [<ref>logfile</ref></code>]</p>
  +     <p>where <ref>file-or-dir-name</ref> is an XML file or directory pathname, and <ref>logfile</ref> designates a log.
  +     If you omit the second argument, Validate reports its findings to the screen.</p>
  +     <note>A limitation: Files containing document parts appear to fail if you check them with Validate. Check readme.xml, 
  +     which "includes" by entity reference a number of files, and it passes. The parse operation scans the entire document
  +     with the includes. Check an "included" file (such as history.xml) as if it were an independent document and it fails.</note>
  +     </s2>
  +     <anchor name="trax"/>
        <s2 title="trax">
        <p>What it does: run a number of samples illustrating uses of the <link idref="trax">TRaX (Transformation API for XML)</link> interfaces.</p>
        <p>Run this sample from the trax subdirectory with</p>
  
  
  
  1.3       +58 -0     xml-xalan/java/xdocs/sources/xalan/trax.xml
  
  Index: trax.xml
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/xdocs/sources/xalan/trax.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- trax.xml	2001/07/17 15:20:30	1.2
  +++ trax.xml	2001/08/08 15:54:26	1.3
  @@ -1,3 +1,61 @@
  +<?xml version="1.0" standalone="no"?>
  +<!DOCTYPE s1 SYSTEM "../../style/dtd/document.dtd">
  +<!-- 
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 1999 The Apache Software Foundation.  All rights 
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer. 
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:  
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Xalan" and "Apache Software Foundation" must
  + *    not be used to endorse or promote products derived from this
  + *    software without prior written permission. For written 
  + *    permission, please contact apache@apache.org.
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    nor may "Apache" appear in their name, without prior written
  + *    permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation and was
  + * originally based on software copyright (c) 1999, Lotus
  + * Development Corporation., http://www.lotus.com.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + -->
   <s1 title="Transformation API For XML">
   <ul>
    <li><link anchor="intro">Introduction</link></li>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org