xml-commons-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwi...@apache.org
Subject cvs commit: xml-commons/java/external/src/javax/xml/transform/stream StreamResult.java StreamSource.java
Date Tue, 22 May 2001 17:06:13 GMT
edwingo     01/05/22 10:06:09

  Modified:    java/external/src/javax/xml/parsers DocumentBuilder.java
                        DocumentBuilderFactory.java
                        FactoryConfigurationError.java FactoryFinder.java
                        ParserConfigurationException.java SAXParser.java
                        SAXParserFactory.java package.html
               java/external/src/javax/xml/transform ErrorListener.java
                        FactoryFinder.java OutputKeys.java Result.java
                        Source.java SourceLocator.java Templates.java
                        Transformer.java
                        TransformerConfigurationException.java
                        TransformerException.java TransformerFactory.java
                        TransformerFactoryConfigurationError.java
                        URIResolver.java
               java/external/src/javax/xml/transform/dom DOMLocator.java
                        DOMResult.java DOMSource.java
               java/external/src/javax/xml/transform/sax SAXResult.java
                        SAXSource.java SAXTransformerFactory.java
                        TemplatesHandler.java TransformerHandler.java
               java/external/src/javax/xml/transform/stream
                        StreamResult.java StreamSource.java
  Log:
  Update copyright
  
  Revision  Changes    Path
  1.2       +53 -17    xml-commons/java/external/src/javax/xml/parsers/DocumentBuilder.java
  
  Index: DocumentBuilder.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/parsers/DocumentBuilder.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DocumentBuilder.java	2001/05/22 01:01:04	1.1
  +++ DocumentBuilder.java	2001/05/22 17:00:11	1.2
  @@ -1,20 +1,56 @@
  -/**
  - * $Id: DocumentBuilder.java,v 1.1 2001/05/22 01:01:04 edwingo Exp $
  - * 
  - * Copyright (c) 1998-2000 Sun Microsystems, Inc. All Rights Reserved.
  - * 
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - * 
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 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 name "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-2001, Sun Microsystems,
  + * Inc., http://www.sun.com.  For more information on the Apache Software
  + * Foundation, please see <http://www.apache.org/>.
    */
   package javax.xml.parsers;
   
  
  
  
  1.2       +51 -15    xml-commons/java/external/src/javax/xml/parsers/DocumentBuilderFactory.java
  
  Index: DocumentBuilderFactory.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/parsers/DocumentBuilderFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DocumentBuilderFactory.java	2001/05/22 01:01:04	1.1
  +++ DocumentBuilderFactory.java	2001/05/22 17:00:19	1.2
  @@ -1,20 +1,56 @@
  -/**
  - * $Id: DocumentBuilderFactory.java,v 1.1 2001/05/22 01:01:04 edwingo Exp $
  +/*
  + * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 1998-2000 Sun Microsystems, Inc. All Rights Reserved.
    *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  + * Copyright (c) 2001 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 name "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-2001, Sun Microsystems,
  + * Inc., http://www.sun.com.  For more information on the Apache Software
  + * Foundation, please see <http://www.apache.org/>.
    */
   
   package javax.xml.parsers;
  
  
  
  1.2       +52 -16    xml-commons/java/external/src/javax/xml/parsers/FactoryConfigurationError.java
  
  Index: FactoryConfigurationError.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/parsers/FactoryConfigurationError.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FactoryConfigurationError.java	2001/05/22 01:01:04	1.1
  +++ FactoryConfigurationError.java	2001/05/22 17:00:23	1.2
  @@ -1,20 +1,56 @@
   /*
  - * $Id: FactoryConfigurationError.java,v 1.1 2001/05/22 01:01:04 edwingo Exp $
  - * 
  - * Copyright (c) 1998-1999 Sun Microsystems, Inc. All Rights Reserved.
  - * 
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - * 
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 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 name "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-2001, Sun Microsystems,
  + * Inc., http://www.sun.com.  For more information on the Apache Software
  + * Foundation, please see <http://www.apache.org/>.
    */
   
   package javax.xml.parsers;
  
  
  
  1.2       +50 -14    xml-commons/java/external/src/javax/xml/parsers/FactoryFinder.java
  
  Index: FactoryFinder.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/parsers/FactoryFinder.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FactoryFinder.java	2001/05/22 01:01:05	1.1
  +++ FactoryFinder.java	2001/05/22 17:00:26	1.2
  @@ -1,20 +1,56 @@
   /*
  - *  $Id: FactoryFinder.java,v 1.1 2001/05/22 01:01:05 edwingo Exp $
  + * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 1998-2001 Sun Microsystems, Inc. All Rights Reserved.
    *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  + * Copyright (c) 2001 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 name "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-2001, Sun Microsystems,
  + * Inc., http://www.sun.com.  For more information on the Apache Software
  + * Foundation, please see <http://www.apache.org/>.
    */
   
   package javax.xml.parsers;
  
  
  
  1.2       +50 -8     xml-commons/java/external/src/javax/xml/parsers/ParserConfigurationException.java
  
  Index: ParserConfigurationException.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/parsers/ParserConfigurationException.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ParserConfigurationException.java	2001/05/22 01:01:04	1.1
  +++ ParserConfigurationException.java	2001/05/22 17:00:29	1.2
  @@ -1,14 +1,56 @@
   /*
  - * $Id: ParserConfigurationException.java,v 1.1 2001/05/22 01:01:04 edwingo Exp $
  + * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 1998-1999 Sun Microsystems, Inc. All Rights Reserved.
    *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  + * Copyright (c) 2001 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 name "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-2001, Sun Microsystems,
  + * Inc., http://www.sun.com.  For more information on the Apache Software
  + * Foundation, please see <http://www.apache.org/>.
    */
   
   package javax.xml.parsers;
  
  
  
  1.2       +50 -14    xml-commons/java/external/src/javax/xml/parsers/SAXParser.java
  
  Index: SAXParser.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/parsers/SAXParser.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SAXParser.java	2001/05/22 01:01:04	1.1
  +++ SAXParser.java	2001/05/22 17:00:33	1.2
  @@ -1,20 +1,56 @@
   /*
  - * $Id: SAXParser.java,v 1.1 2001/05/22 01:01:04 edwingo Exp $
  + * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 1998-1999 Sun Microsystems, Inc. All Rights Reserved.
    *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  + * Copyright (c) 2001 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 name "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-2001, Sun Microsystems,
  + * Inc., http://www.sun.com.  For more information on the Apache Software
  + * Foundation, please see <http://www.apache.org/>.
    */
   
   
  
  
  
  1.2       +50 -14    xml-commons/java/external/src/javax/xml/parsers/SAXParserFactory.java
  
  Index: SAXParserFactory.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/parsers/SAXParserFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SAXParserFactory.java	2001/05/22 01:01:05	1.1
  +++ SAXParserFactory.java	2001/05/22 17:00:37	1.2
  @@ -1,20 +1,56 @@
   /*
  - *  $Id: SAXParserFactory.java,v 1.1 2001/05/22 01:01:05 edwingo Exp $
  + * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 1998-2000 Sun Microsystems, Inc. All Rights Reserved.
    *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  + * Copyright (c) 2001 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 name "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-2001, Sun Microsystems,
  + * Inc., http://www.sun.com.  For more information on the Apache Software
  + * Foundation, please see <http://www.apache.org/>.
    */
   
   package javax.xml.parsers;
  
  
  
  1.2       +0 -17     xml-commons/java/external/src/javax/xml/parsers/package.html
  
  Index: package.html
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/parsers/package.html,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- package.html	2001/05/22 01:01:04	1.1
  +++ package.html	2001/05/22 17:00:43	1.2
  @@ -1,21 +1,4 @@
   <HTML><HEAD>
  -<!--
  -    $Id: package.html,v 1.1 2001/05/22 01:01:04 edwingo Exp $
  -
  - This software is the confidential and proprietary information of Sun
  - Microsystems, Inc. ("Confidential Information").  You shall not
  - disclose such Confidential Information and shall use it only in
  - accordance with the terms of the license agreement you entered into
  - with Sun.
  - 
  - SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - THIS SOFTWARE OR ITS DERIVATIVES.
  - Copyright 1998-1999 by Sun Microsystems Inc.  All rights reserved.
  --->
   
   </HEAD><BODY>
   
  
  
  
  1.2       +50 -15    xml-commons/java/external/src/javax/xml/transform/ErrorListener.java
  
  Index: ErrorListener.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/ErrorListener.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ErrorListener.java	2001/05/22 01:01:05	1.1
  +++ ErrorListener.java	2001/05/22 17:01:36	1.2
  @@ -1,20 +1,55 @@
  -/**
  - * $Id: ErrorListener.java,v 1.1 2001/05/22 01:01:05 edwingo Exp $
  +/*
  + * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
    *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   package javax.xml.transform;
   
  
  
  
  1.2       +49 -14    xml-commons/java/external/src/javax/xml/transform/FactoryFinder.java
  
  Index: FactoryFinder.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/FactoryFinder.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FactoryFinder.java	2001/05/22 01:01:06	1.1
  +++ FactoryFinder.java	2001/05/22 17:01:40	1.2
  @@ -1,20 +1,55 @@
   /*
  - *  $Id: FactoryFinder.java,v 1.1 2001/05/22 01:01:06 edwingo Exp $
  + * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 1998-2001 Sun Microsystems, Inc. All Rights Reserved.
    *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   
   package javax.xml.transform;
  
  
  
  1.2       +214 -179  xml-commons/java/external/src/javax/xml/transform/OutputKeys.java
  
  Index: OutputKeys.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/OutputKeys.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- OutputKeys.java	2001/05/22 01:01:05	1.1
  +++ OutputKeys.java	2001/05/22 17:01:44	1.2
  @@ -1,179 +1,214 @@
  -/**
  - * $Id: OutputKeys.java,v 1.1 2001/05/22 01:01:05 edwingo Exp $
  - *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
  - *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  - */
  -package javax.xml.transform;
  -
  -/**
  - * Provides string constants that can be used to set
  - * output properties for a Transformer, or to retrieve
  - * output properties from a Transformer or Templates object.
  - * <p>A properties in this class are read-only.</p>
  - *
  - * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
  - */
  -public class OutputKeys {
  -
  -    /**
  -     * Default constructor is private on purpose.  This class is
  -     * only for static variable access, and should never be constructed.
  -     */
  -    private OutputKeys() {}
  -
  -    /**
  -     * method = "xml" | "html" | "text" | <var>expanded name</var>.
  -     *
  -     * <p>The method attribute identifies the overall method that
  -     * should be used for outputting the result tree.  Other non-namespaced
  -     * values may be used, such as "xhtml", but, if accepted, the handling
  -     * of such values is implementation defined.  If any of the method values
  -     * are not accepted and are not namespace qualified,
  -     * then {@link javax.xml.transform.Transformer#setOutputProperty}
  -     * or {@link javax.xml.transform.Transformer#setOutputProperties} will
  -     * throw a {@link java.lang.IllegalArgumentException}.</p>
  -     *
  -     * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
  -     */
  -    public static final String METHOD = "method";
  -
  -    /**
  -     * version = <var>nmtoken</var>.
  -     *
  -     * <p><code>version</code> specifies the version of the output
  -     * method.</p>
  -     * <p>When the output method is "xml", the version value specifies the
  -     * version of XML to be used for outputting the result tree. The default
  -     * value for the xml output method is 1.0. When the output method is
  -     * "html", the version value indicates the version of the HTML.
  -     * The default value for the xml output method is 4.0, which specifies
  -     * that the result should be output as HTML conforming to the HTML 4.0
  -     * Recommendation [HTML].  If the output method is "text", the version
  -     * property is ignored.</p>
  -     * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
  -     */
  -    public static final String VERSION = "version";
  -
  -    /**
  -     * encoding = <var>string</var>.
  -     *
  -     * <p><code>encoding</code> specifies the preferred character
  -     * encoding that the Transformer should use to encode sequences of
  -     * characters as sequences of bytes. The value of the attribute should be
  -     * treated case-insensitively. The value must only contain characters in
  -     * the range #x21 to #x7E (i.e., printable ASCII characters). The value
  -     * should either be a <code>charset</code> registered with the Internet
  -     * Assigned Numbers Authority <a href="#IANA">[IANA]</a>,
  -     * <a href="#RFC2278">[RFC2278]</a> or start with <code>X-</code>.</p>
  -     * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
  -     */
  -    public static final String ENCODING = "encoding";
  -
  -    /**
  -     * omit-xml-declaration = "yes" | "no".
  -     *
  -     * <p><code>omit-xml-declaration</code> specifies whether the XSLT
  -     * processor should output an XML declaration; the value must be
  -     * <code>yes</code> or <code>no</code>.</p>
  -     * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
  -     */
  -    public static final String OMIT_XML_DECLARATION = "omit-xml-declaration";
  -
  -    /**
  -     * standalone = "yes" | "no".
  -     *
  -     * <p><code>standalone</code> specifies whether the Transformer
  -     * should output a standalone document declaration; the value must be
  -     * <code>yes</code> or <code>no</code>.</p>
  -     * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
  -     */
  -    public static final String STANDALONE = "standalone";
  -
  -    /**
  -     * doctype-public = <var>string</var>.
  -     * <p>See the documentation for the {@link #DOCTYPE_SYSTEM} property
  -     * for a description of what the value of the key should be.</p>
  -     *
  -     * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
  -     */
  -    public static final String DOCTYPE_PUBLIC = "doctype-public";
  -
  -    /**
  -     * doctype-system = <var>string</var>.
  -     * <p><code>doctype-public</code> specifies the public identifier
  -     * to be used in the document type declaration.</p>
  -     * <p>If the doctype-system property is specified, the xml output method
  -     * should output a document type declaration immediately before the first
  -     * element. The name following &lt;!DOCTYPE should be the name of the first
  -     * element. If doctype-public property is also specified, then the xml
  -     * output method should output PUBLIC followed by the public identifier
  -     * and then the system identifier; otherwise, it should output SYSTEM
  -     * followed by the system identifier. The internal subset should be empty.
  -     * The doctype-public attribute should be ignored unless the doctype-system
  -     * attribute is specified.</p>
  -     * <p>If the doctype-public or doctype-system attributes are specified,
  -     * then the html output method should output a document type declaration
  -     * immediately before the first element. The name following &lt;!DOCTYPE
  -     * should be HTML or html. If the doctype-public attribute is specified,
  -     * then the output method should output PUBLIC followed by the specified
  -     * public identifier; if the doctype-system attribute is also specified,
  -     * it should also output the specified system identifier following the
  -     * public identifier. If the doctype-system attribute is specified but
  -     * the doctype-public attribute is not specified, then the output method
  -     * should output SYSTEM followed by the specified system identifier.</p>
  -     *
  -     * <p><code>doctype-system</code> specifies the system identifier
  -     * to be used in the document type declaration.</p>
  -     * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
  -     */
  -    public static final String DOCTYPE_SYSTEM = "doctype-system";
  -
  -    /**
  -     * cdata-section-elements = <var>expanded names</var>.
  -     *
  -     * <p><code>cdata-section-elements</code> specifies a whitespace delimited
  -     * list of the names of elements whose text node children should be output
  -     * using CDATA sections.</p>
  -     *
  -     * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation.</a>
  -     */
  -    public static final String CDATA_SECTION_ELEMENTS =
  -        "cdata-section-elements";
  -
  -    /**
  -     * indent = "yes" | "no".
  -     *
  -     * <p><code>indent</code> specifies whether the Transformer may
  -     * add additional whitespace when outputting the result tree; the value
  -     * must be <code>yes</code> or <code>no</code>.  </p>
  -     * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
  -     */
  -    public static final String INDENT = "indent";
  -
  -    /**
  -     * media-type = <var>string</var>.
  -     *
  -     * <p><code>media-type</code> specifies the media type (MIME
  -     * content type) of the data that results from outputting the result
  -     * tree. The <code>charset</code> parameter should not be specified
  -     * explicitly; instead, when the top-level media type is
  -     * <code>text</code>, a <code>charset</code> parameter should be added
  -     * according to the character encoding actually used by the output
  -     * method.  </p>
  -     * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
  -     */
  -    public static final String MEDIA_TYPE = "media-type";
  -}
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
  +package javax.xml.transform;
  +
  +/**
  + * Provides string constants that can be used to set
  + * output properties for a Transformer, or to retrieve
  + * output properties from a Transformer or Templates object.
  + * <p>A properties in this class are read-only.</p>
  + *
  + * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
  + */
  +public class OutputKeys {
  +
  +    /**
  +     * Default constructor is private on purpose.  This class is
  +     * only for static variable access, and should never be constructed.
  +     */
  +    private OutputKeys() {}
  +
  +    /**
  +     * method = "xml" | "html" | "text" | <var>expanded name</var>.
  +     *
  +     * <p>The method attribute identifies the overall method that
  +     * should be used for outputting the result tree.  Other non-namespaced
  +     * values may be used, such as "xhtml", but, if accepted, the handling
  +     * of such values is implementation defined.  If any of the method values
  +     * are not accepted and are not namespace qualified,
  +     * then {@link javax.xml.transform.Transformer#setOutputProperty}
  +     * or {@link javax.xml.transform.Transformer#setOutputProperties} will
  +     * throw a {@link java.lang.IllegalArgumentException}.</p>
  +     *
  +     * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
  +     */
  +    public static final String METHOD = "method";
  +
  +    /**
  +     * version = <var>nmtoken</var>.
  +     *
  +     * <p><code>version</code> specifies the version of the output
  +     * method.</p>
  +     * <p>When the output method is "xml", the version value specifies the
  +     * version of XML to be used for outputting the result tree. The default
  +     * value for the xml output method is 1.0. When the output method is
  +     * "html", the version value indicates the version of the HTML.
  +     * The default value for the xml output method is 4.0, which specifies
  +     * that the result should be output as HTML conforming to the HTML 4.0
  +     * Recommendation [HTML].  If the output method is "text", the version
  +     * property is ignored.</p>
  +     * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
  +     */
  +    public static final String VERSION = "version";
  +
  +    /**
  +     * encoding = <var>string</var>.
  +     *
  +     * <p><code>encoding</code> specifies the preferred character
  +     * encoding that the Transformer should use to encode sequences of
  +     * characters as sequences of bytes. The value of the attribute should be
  +     * treated case-insensitively. The value must only contain characters in
  +     * the range #x21 to #x7E (i.e., printable ASCII characters). The value
  +     * should either be a <code>charset</code> registered with the Internet
  +     * Assigned Numbers Authority <a href="#IANA">[IANA]</a>,
  +     * <a href="#RFC2278">[RFC2278]</a> or start with <code>X-</code>.</p>
  +     * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
  +     */
  +    public static final String ENCODING = "encoding";
  +
  +    /**
  +     * omit-xml-declaration = "yes" | "no".
  +     *
  +     * <p><code>omit-xml-declaration</code> specifies whether the XSLT
  +     * processor should output an XML declaration; the value must be
  +     * <code>yes</code> or <code>no</code>.</p>
  +     * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
  +     */
  +    public static final String OMIT_XML_DECLARATION = "omit-xml-declaration";
  +
  +    /**
  +     * standalone = "yes" | "no".
  +     *
  +     * <p><code>standalone</code> specifies whether the Transformer
  +     * should output a standalone document declaration; the value must be
  +     * <code>yes</code> or <code>no</code>.</p>
  +     * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
  +     */
  +    public static final String STANDALONE = "standalone";
  +
  +    /**
  +     * doctype-public = <var>string</var>.
  +     * <p>See the documentation for the {@link #DOCTYPE_SYSTEM} property
  +     * for a description of what the value of the key should be.</p>
  +     *
  +     * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
  +     */
  +    public static final String DOCTYPE_PUBLIC = "doctype-public";
  +
  +    /**
  +     * doctype-system = <var>string</var>.
  +     * <p><code>doctype-public</code> specifies the public identifier
  +     * to be used in the document type declaration.</p>
  +     * <p>If the doctype-system property is specified, the xml output method
  +     * should output a document type declaration immediately before the first
  +     * element. The name following &lt;!DOCTYPE should be the name of the first
  +     * element. If doctype-public property is also specified, then the xml
  +     * output method should output PUBLIC followed by the public identifier
  +     * and then the system identifier; otherwise, it should output SYSTEM
  +     * followed by the system identifier. The internal subset should be empty.
  +     * The doctype-public attribute should be ignored unless the doctype-system
  +     * attribute is specified.</p>
  +     * <p>If the doctype-public or doctype-system attributes are specified,
  +     * then the html output method should output a document type declaration
  +     * immediately before the first element. The name following &lt;!DOCTYPE
  +     * should be HTML or html. If the doctype-public attribute is specified,
  +     * then the output method should output PUBLIC followed by the specified
  +     * public identifier; if the doctype-system attribute is also specified,
  +     * it should also output the specified system identifier following the
  +     * public identifier. If the doctype-system attribute is specified but
  +     * the doctype-public attribute is not specified, then the output method
  +     * should output SYSTEM followed by the specified system identifier.</p>
  +     *
  +     * <p><code>doctype-system</code> specifies the system identifier
  +     * to be used in the document type declaration.</p>
  +     * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
  +     */
  +    public static final String DOCTYPE_SYSTEM = "doctype-system";
  +
  +    /**
  +     * cdata-section-elements = <var>expanded names</var>.
  +     *
  +     * <p><code>cdata-section-elements</code> specifies a whitespace delimited
  +     * list of the names of elements whose text node children should be output
  +     * using CDATA sections.</p>
  +     *
  +     * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation.</a>
  +     */
  +    public static final String CDATA_SECTION_ELEMENTS =
  +        "cdata-section-elements";
  +
  +    /**
  +     * indent = "yes" | "no".
  +     *
  +     * <p><code>indent</code> specifies whether the Transformer may
  +     * add additional whitespace when outputting the result tree; the value
  +     * must be <code>yes</code> or <code>no</code>.  </p>
  +     * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
  +     */
  +    public static final String INDENT = "indent";
  +
  +    /**
  +     * media-type = <var>string</var>.
  +     *
  +     * <p><code>media-type</code> specifies the media type (MIME
  +     * content type) of the data that results from outputting the result
  +     * tree. The <code>charset</code> parameter should not be specified
  +     * explicitly; instead, when the top-level media type is
  +     * <code>text</code>, a <code>charset</code> parameter should be added
  +     * according to the character encoding actually used by the output
  +     * method.  </p>
  +     * @see <a href="http://www.w3.org/TR/xslt#output">section 16 of the XSL Transformations (XSLT) W3C Recommendation</a>
  +     */
  +    public static final String MEDIA_TYPE = "media-type";
  +}
  
  
  
  1.2       +50 -15    xml-commons/java/external/src/javax/xml/transform/Result.java
  
  Index: Result.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/Result.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Result.java	2001/05/22 01:01:05	1.1
  +++ Result.java	2001/05/22 17:01:48	1.2
  @@ -1,20 +1,55 @@
  -/**
  - * $Id: Result.java,v 1.1 2001/05/22 01:01:05 edwingo Exp $
  +/*
  + * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
    *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   package javax.xml.transform;
   
  
  
  
  1.2       +87 -52    xml-commons/java/external/src/javax/xml/transform/Source.java
  
  Index: Source.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/Source.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Source.java	2001/05/22 01:01:06	1.1
  +++ Source.java	2001/05/22 17:01:53	1.2
  @@ -1,52 +1,87 @@
  -/**
  - * $Id: Source.java,v 1.1 2001/05/22 01:01:06 edwingo Exp $
  - *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
  - *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  - */
  -package javax.xml.transform;
  -
  -import java.lang.String;
  -
  -import java.io.InputStream;
  -import java.io.Reader;
  -
  -
  -/**
  - * An object that implements this interface contains the information
  - * needed to act as source input (XML source or transformation instructions).
  - */
  -public interface Source {
  -
  -    /**
  -     * Set the system identifier for this Source.
  -     *
  -     * <p>The system identifier is optional if the source does not
  -     * get its data from a URL, but it may still be useful to provide one.
  -     * The application can use a system identifier, for example, to resolve
  -     * relative URIs and to include in error messages and warnings.</p>
  -     *
  -     * @param systemId The system identifier as a URL string.
  -     */
  -    public void setSystemId(String systemId);
  -
  -    /**
  -     * Get the system identifier that was set with setSystemId.
  -     *
  -     * @return The system identifier that was set with setSystemId, or null
  -     * if setSystemId was not called.
  -     */
  -    public String getSystemId();
  -}
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
  +package javax.xml.transform;
  +
  +import java.lang.String;
  +
  +import java.io.InputStream;
  +import java.io.Reader;
  +
  +
  +/**
  + * An object that implements this interface contains the information
  + * needed to act as source input (XML source or transformation instructions).
  + */
  +public interface Source {
  +
  +    /**
  +     * Set the system identifier for this Source.
  +     *
  +     * <p>The system identifier is optional if the source does not
  +     * get its data from a URL, but it may still be useful to provide one.
  +     * The application can use a system identifier, for example, to resolve
  +     * relative URIs and to include in error messages and warnings.</p>
  +     *
  +     * @param systemId The system identifier as a URL string.
  +     */
  +    public void setSystemId(String systemId);
  +
  +    /**
  +     * Get the system identifier that was set with setSystemId.
  +     *
  +     * @return The system identifier that was set with setSystemId, or null
  +     * if setSystemId was not called.
  +     */
  +    public String getSystemId();
  +}
  
  
  
  1.2       +124 -89   xml-commons/java/external/src/javax/xml/transform/SourceLocator.java
  
  Index: SourceLocator.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/SourceLocator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SourceLocator.java	2001/05/22 01:01:06	1.1
  +++ SourceLocator.java	2001/05/22 17:01:57	1.2
  @@ -1,89 +1,124 @@
  -/**
  - * $Id: SourceLocator.java,v 1.1 2001/05/22 01:01:06 edwingo Exp $
  - *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
  - *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  - */
  -package javax.xml.transform;
  -
  -/**
  - * This interface is primarily for the purposes of reporting where
  - * an error occurred in the XML source or transformation instructions.
  - */
  -public interface SourceLocator {
  -
  -    /**
  -     * Return the public identifier for the current document event.
  -     *
  -     * <p>The return value is the public identifier of the document
  -     * entity or of the external parsed entity in which the markup that
  -     * triggered the event appears.</p>
  -     *
  -     * @return A string containing the public identifier, or
  -     *         null if none is available.
  -     * @see #getSystemId
  -     */
  -    public String getPublicId();
  -
  -    /**
  -     * Return the system identifier for the current document event.
  -     *
  -     * <p>The return value is the system identifier of the document
  -     * entity or of the external parsed entity in which the markup that
  -     * triggered the event appears.</p>
  -     *
  -     * <p>If the system identifier is a URL, the parser must resolve it
  -     * fully before passing it to the application.</p>
  -     *
  -     * @return A string containing the system identifier, or null
  -     *         if none is available.
  -     * @see #getPublicId
  -     */
  -    public String getSystemId();
  -
  -    /**
  -     * Return the line number where the current document event ends.
  -     *
  -     * <p><strong>Warning:</strong> The return value from the method
  -     * is intended only as an approximation for the sake of error
  -     * reporting; it is not intended to provide sufficient information
  -     * to edit the character content of the original XML document.</p>
  -     *
  -     * <p>The return value is an approximation of the line number
  -     * in the document entity or external parsed entity where the
  -     * markup that triggered the event appears.</p>
  -     *
  -     * @return The line number, or -1 if none is available.
  -     * @see #getColumnNumber
  -     */
  -    public int getLineNumber();
  -
  -    /**
  -     * Return the character position where the current document event ends.
  -     *
  -     * <p><strong>Warning:</strong> The return value from the method
  -     * is intended only as an approximation for the sake of error
  -     * reporting; it is not intended to provide sufficient information
  -     * to edit the character content of the original XML document.</p>
  -     *
  -     * <p>The return value is an approximation of the column number
  -     * in the document entity or external parsed entity where the
  -     * markup that triggered the event appears.</p>
  -     *
  -     * @return The column number, or -1 if none is available.
  -     * @see #getLineNumber
  -     */
  -    public int getColumnNumber();
  -}
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
  +package javax.xml.transform;
  +
  +/**
  + * This interface is primarily for the purposes of reporting where
  + * an error occurred in the XML source or transformation instructions.
  + */
  +public interface SourceLocator {
  +
  +    /**
  +     * Return the public identifier for the current document event.
  +     *
  +     * <p>The return value is the public identifier of the document
  +     * entity or of the external parsed entity in which the markup that
  +     * triggered the event appears.</p>
  +     *
  +     * @return A string containing the public identifier, or
  +     *         null if none is available.
  +     * @see #getSystemId
  +     */
  +    public String getPublicId();
  +
  +    /**
  +     * Return the system identifier for the current document event.
  +     *
  +     * <p>The return value is the system identifier of the document
  +     * entity or of the external parsed entity in which the markup that
  +     * triggered the event appears.</p>
  +     *
  +     * <p>If the system identifier is a URL, the parser must resolve it
  +     * fully before passing it to the application.</p>
  +     *
  +     * @return A string containing the system identifier, or null
  +     *         if none is available.
  +     * @see #getPublicId
  +     */
  +    public String getSystemId();
  +
  +    /**
  +     * Return the line number where the current document event ends.
  +     *
  +     * <p><strong>Warning:</strong> The return value from the method
  +     * is intended only as an approximation for the sake of error
  +     * reporting; it is not intended to provide sufficient information
  +     * to edit the character content of the original XML document.</p>
  +     *
  +     * <p>The return value is an approximation of the line number
  +     * in the document entity or external parsed entity where the
  +     * markup that triggered the event appears.</p>
  +     *
  +     * @return The line number, or -1 if none is available.
  +     * @see #getColumnNumber
  +     */
  +    public int getLineNumber();
  +
  +    /**
  +     * Return the character position where the current document event ends.
  +     *
  +     * <p><strong>Warning:</strong> The return value from the method
  +     * is intended only as an approximation for the sake of error
  +     * reporting; it is not intended to provide sufficient information
  +     * to edit the character content of the original XML document.</p>
  +     *
  +     * <p>The return value is an approximation of the column number
  +     * in the document entity or external parsed entity where the
  +     * markup that triggered the event appears.</p>
  +     *
  +     * @return The column number, or -1 if none is available.
  +     * @see #getLineNumber
  +     */
  +    public int getColumnNumber();
  +}
  
  
  
  1.2       +111 -76   xml-commons/java/external/src/javax/xml/transform/Templates.java
  
  Index: Templates.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/Templates.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Templates.java	2001/05/22 01:01:06	1.1
  +++ Templates.java	2001/05/22 17:02:01	1.2
  @@ -1,76 +1,111 @@
  -/**
  - * $Id: Templates.java,v 1.1 2001/05/22 01:01:06 edwingo Exp $
  - *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
  - *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  - */
  -package javax.xml.transform;
  -
  -import java.util.Properties;
  -
  -import javax.xml.transform.TransformerException;
  -
  -
  -/**
  - * An object that implements this interface is the runtime representation of processed
  - * transformation instructions.
  - *
  - * <p>Templates must be threadsafe for a given instance
  - * over multiple threads running concurrently, and may
  - * be used multiple times in a given session.</p>
  - */
  -public interface Templates {
  -
  -    /**
  -     * Create a new transformation context for this Templates object.
  -     *
  -     * @return A valid non-null instance of a Transformer.
  -     *
  -     * @throws TransformerConfigurationException if a Transformer can not be created.
  -     */
  -    Transformer newTransformer() throws TransformerConfigurationException;
  -
  -    /**
  -     * Get the static properties for xsl:output.  The object returned will
  -     * be a clone of the internal values. Accordingly, it can be mutated
  -     * without mutating the Templates object, and then handed in to
  -     * {@link javax.xml.transform.Transformer#setOutputProperties}.
  -     *
  -     * <p>The properties returned should contain properties set by the stylesheet,
  -     * and these properties are "defaulted" by default properties specified by
  -     * <a href="http://www.w3.org/TR/xslt#output">section 16 of the
  -     * XSL Transformations (XSLT) W3C Recommendation</a>.  The properties that
  -     * were specifically set by the stylesheet should be in the base
  -     * Properties list, while the XSLT default properties that were not
  -     * specifically set should be in the "default" Properties list.  Thus,
  -     * getOutputProperties().getProperty(String key) will obtain any
  -     * property in that was set by the stylesheet, <em>or</em> the default
  -     * properties, while
  -     * getOutputProperties().get(String key) will only retrieve properties
  -     * that were explicitly set in the stylesheet.</p>
  -     *
  -     * <p>For XSLT,
  -     * <a href="http://www.w3.org/TR/xslt#attribute-value-templates">Attribute
  -     * Value Templates</a> attribute values will
  -     * be returned unexpanded (since there is no context at this point).  The
  -     * namespace prefixes inside Attribute Value Templates will be unexpanded,
  -     * so that they remain valid XPath values.  (For XSLT 1.0, this is not
  -     * a problem since Attribute Value Templates are not allowed for xsl:output
  -     * attributes.  However, the will be allowed in versions after 1.1.)</p>
  -     *
  -     * @return A Properties object, never null.
  -     */
  -    Properties getOutputProperties();
  -}
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
  +package javax.xml.transform;
  +
  +import java.util.Properties;
  +
  +import javax.xml.transform.TransformerException;
  +
  +
  +/**
  + * An object that implements this interface is the runtime representation of processed
  + * transformation instructions.
  + *
  + * <p>Templates must be threadsafe for a given instance
  + * over multiple threads running concurrently, and may
  + * be used multiple times in a given session.</p>
  + */
  +public interface Templates {
  +
  +    /**
  +     * Create a new transformation context for this Templates object.
  +     *
  +     * @return A valid non-null instance of a Transformer.
  +     *
  +     * @throws TransformerConfigurationException if a Transformer can not be created.
  +     */
  +    Transformer newTransformer() throws TransformerConfigurationException;
  +
  +    /**
  +     * Get the static properties for xsl:output.  The object returned will
  +     * be a clone of the internal values. Accordingly, it can be mutated
  +     * without mutating the Templates object, and then handed in to
  +     * {@link javax.xml.transform.Transformer#setOutputProperties}.
  +     *
  +     * <p>The properties returned should contain properties set by the stylesheet,
  +     * and these properties are "defaulted" by default properties specified by
  +     * <a href="http://www.w3.org/TR/xslt#output">section 16 of the
  +     * XSL Transformations (XSLT) W3C Recommendation</a>.  The properties that
  +     * were specifically set by the stylesheet should be in the base
  +     * Properties list, while the XSLT default properties that were not
  +     * specifically set should be in the "default" Properties list.  Thus,
  +     * getOutputProperties().getProperty(String key) will obtain any
  +     * property in that was set by the stylesheet, <em>or</em> the default
  +     * properties, while
  +     * getOutputProperties().get(String key) will only retrieve properties
  +     * that were explicitly set in the stylesheet.</p>
  +     *
  +     * <p>For XSLT,
  +     * <a href="http://www.w3.org/TR/xslt#attribute-value-templates">Attribute
  +     * Value Templates</a> attribute values will
  +     * be returned unexpanded (since there is no context at this point).  The
  +     * namespace prefixes inside Attribute Value Templates will be unexpanded,
  +     * so that they remain valid XPath values.  (For XSLT 1.0, this is not
  +     * a problem since Attribute Value Templates are not allowed for xsl:output
  +     * attributes.  However, the will be allowed in versions after 1.1.)</p>
  +     *
  +     * @return A Properties object, never null.
  +     */
  +    Properties getOutputProperties();
  +}
  
  
  
  1.2       +50 -15    xml-commons/java/external/src/javax/xml/transform/Transformer.java
  
  Index: Transformer.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/Transformer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Transformer.java	2001/05/22 01:01:06	1.1
  +++ Transformer.java	2001/05/22 17:02:06	1.2
  @@ -1,20 +1,55 @@
  -/**
  - * $Id: Transformer.java,v 1.1 2001/05/22 01:01:06 edwingo Exp $
  +/*
  + * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
    *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   package javax.xml.transform;
   
  
  
  
  1.2       +131 -96   xml-commons/java/external/src/javax/xml/transform/TransformerConfigurationException.java
  
  Index: TransformerConfigurationException.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/TransformerConfigurationException.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TransformerConfigurationException.java	2001/05/22 01:01:06	1.1
  +++ TransformerConfigurationException.java	2001/05/22 17:02:11	1.2
  @@ -1,96 +1,131 @@
  -/*
  - * $Id: TransformerConfigurationException.java,v 1.1 2001/05/22 01:01:06 edwingo Exp $
  - *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
  - *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  - */
  -package javax.xml.transform;
  -
  -/**
  - * Indicates a serious configuration error.
  - */
  -public class TransformerConfigurationException extends TransformerException {
  -
  -    /**
  -     * Create a new <code>TransformerConfigurationException</code> with no
  -     * detail mesage.
  -     */
  -    public TransformerConfigurationException() {
  -        super("Configuration Error");
  -    }
  -
  -    /**
  -     * Create a new <code>TransformerConfigurationException</code> with
  -     * the <code>String </code> specified as an error message.
  -     *
  -     * @param msg The error message for the exception.
  -     */
  -    public TransformerConfigurationException(String msg) {
  -        super(msg);
  -    }
  -
  -    /**
  -     * Create a new <code>TransformerConfigurationException</code> with a
  -     * given <code>Exception</code> base cause of the error.
  -     *
  -     * @param e The exception to be encapsulated in a
  -     * TransformerConfigurationException.
  -     */
  -    public TransformerConfigurationException(Throwable e) {
  -        super(e);
  -    }
  -
  -    /**
  -     * Create a new <code>TransformerConfigurationException</code> with the
  -     * given <code>Exception</code> base cause and detail message.
  -     *
  -     * @param e The exception to be encapsulated in a
  -     * TransformerConfigurationException
  -     * @param msg The detail message.
  -     * @param e The exception to be wrapped in a TransformerConfigurationException
  -     */
  -    public TransformerConfigurationException(String msg, Throwable e) {
  -        super(msg, e);
  -    }
  -
  -    /**
  -     * Create a new TransformerConfigurationException from a message and a Locator.
  -     *
  -     * <p>This constructor is especially useful when an application is
  -     * creating its own exception from within a DocumentHandler
  -     * callback.</p>
  -     *
  -     * @param message The error or warning message.
  -     * @param locator The locator object for the error or warning.
  -     */
  -    public TransformerConfigurationException(String message,
  -                                             SourceLocator locator) {
  -        super(message, locator);
  -    }
  -
  -    /**
  -     * Wrap an existing exception in a TransformerConfigurationException.
  -     *
  -     * @param message The error or warning message, or null to
  -     *                use the message from the embedded exception.
  -     * @param locator The locator object for the error or warning.
  -     * @param e Any exception.
  -     */
  -    public TransformerConfigurationException(String message,
  -                                             SourceLocator locator,
  -                                             Throwable e) {
  -        super(message, locator, e);
  -    }
  -}
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
  +package javax.xml.transform;
  +
  +/**
  + * Indicates a serious configuration error.
  + */
  +public class TransformerConfigurationException extends TransformerException {
  +
  +    /**
  +     * Create a new <code>TransformerConfigurationException</code> with no
  +     * detail mesage.
  +     */
  +    public TransformerConfigurationException() {
  +        super("Configuration Error");
  +    }
  +
  +    /**
  +     * Create a new <code>TransformerConfigurationException</code> with
  +     * the <code>String </code> specified as an error message.
  +     *
  +     * @param msg The error message for the exception.
  +     */
  +    public TransformerConfigurationException(String msg) {
  +        super(msg);
  +    }
  +
  +    /**
  +     * Create a new <code>TransformerConfigurationException</code> with a
  +     * given <code>Exception</code> base cause of the error.
  +     *
  +     * @param e The exception to be encapsulated in a
  +     * TransformerConfigurationException.
  +     */
  +    public TransformerConfigurationException(Throwable e) {
  +        super(e);
  +    }
  +
  +    /**
  +     * Create a new <code>TransformerConfigurationException</code> with the
  +     * given <code>Exception</code> base cause and detail message.
  +     *
  +     * @param e The exception to be encapsulated in a
  +     * TransformerConfigurationException
  +     * @param msg The detail message.
  +     * @param e The exception to be wrapped in a TransformerConfigurationException
  +     */
  +    public TransformerConfigurationException(String msg, Throwable e) {
  +        super(msg, e);
  +    }
  +
  +    /**
  +     * Create a new TransformerConfigurationException from a message and a Locator.
  +     *
  +     * <p>This constructor is especially useful when an application is
  +     * creating its own exception from within a DocumentHandler
  +     * callback.</p>
  +     *
  +     * @param message The error or warning message.
  +     * @param locator The locator object for the error or warning.
  +     */
  +    public TransformerConfigurationException(String message,
  +                                             SourceLocator locator) {
  +        super(message, locator);
  +    }
  +
  +    /**
  +     * Wrap an existing exception in a TransformerConfigurationException.
  +     *
  +     * @param message The error or warning message, or null to
  +     *                use the message from the embedded exception.
  +     * @param locator The locator object for the error or warning.
  +     * @param e Any exception.
  +     */
  +    public TransformerConfigurationException(String message,
  +                                             SourceLocator locator,
  +                                             Throwable e) {
  +        super(message, locator, e);
  +    }
  +}
  
  
  
  1.2       +50 -15    xml-commons/java/external/src/javax/xml/transform/TransformerException.java
  
  Index: TransformerException.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/TransformerException.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TransformerException.java	2001/05/22 01:01:06	1.1
  +++ TransformerException.java	2001/05/22 17:02:14	1.2
  @@ -1,20 +1,55 @@
  -/**
  - * $Id: TransformerException.java,v 1.1 2001/05/22 01:01:06 edwingo Exp $
  +/*
  + * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
    *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   package javax.xml.transform;
   
  
  
  
  1.2       +294 -259  xml-commons/java/external/src/javax/xml/transform/TransformerFactory.java
  
  Index: TransformerFactory.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/TransformerFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TransformerFactory.java	2001/05/22 01:01:05	1.1
  +++ TransformerFactory.java	2001/05/22 17:02:17	1.2
  @@ -1,259 +1,294 @@
  -/**
  - * $Id: TransformerFactory.java,v 1.1 2001/05/22 01:01:05 edwingo Exp $
  - *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
  - *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  - */
  -package javax.xml.transform;
  -
  -import java.io.IOException;
  -import java.io.File;
  -import java.io.FileInputStream;
  -import java.io.InputStream;
  -import java.io.InputStreamReader;
  -import java.io.BufferedReader;
  -
  -import java.util.Properties;
  -import java.util.Enumeration;
  -
  -import java.lang.reflect.Method;
  -import java.lang.reflect.InvocationTargetException;
  -
  -/**
  - * A TransformerFactory instance can be used to create
  - * {@link javax.xml.transform.Transformer} and
  - * {@link javax.xml.transform.Templates} objects.
  - *
  - * <p>The system property that determines which Factory implementation to
  - * create is named <code>"javax.xml.transform.TransformerFactory"</code>.
  - * This property names a concrete subclass of the
  - * <code>TransformerFactory</code> abstract class. If the property is not
  - * defined, a platform default is be used.</p>
  - *
  - * An implementation of the <code>TransformerFactory</code> class is
  - * <em>NOT</em> guaranteed to be thread safe. It is up to the user application 
  - * to make sure about the use of the <code>TransformerFactory</code> from 
  - * more than one thread. Alternatively the application can have one instance 
  - * of the <code>TransformerFactory</code> per thread.
  - * An application can use the same instance of the factory to obtain one or 
  - * more instances of a <code>Transformer</code> or <code>Templates</code> 
  - * provided the instance of the factory isn't being used in more than one 
  - * thread at a time.
  - */
  -public abstract class TransformerFactory {
  -    /**
  -     * Default constructor is protected on purpose.
  -     */
  -    protected TransformerFactory() {}
  -
  -    /**
  -     * Obtain a new instance of a <code>TransformerFactory</code>.
  -     * This static method creates a new factory instance
  -     * This method uses the following ordered lookup procedure to determine
  -     * the <code>TransformerFactory</code> implementation class to
  -     * load:
  -     * <ul>
  -     * <li>
  -     * Use the <code>javax.xml.transform.TransformerFactory</code> system
  -     * property.
  -     * </li>
  -     * <li>
  -     * Use the properties file "lib/jaxp.properties" in the JRE directory.
  -     * This configuration file is in standard <code>java.util.Properties
  -     * </code> format and contains the fully qualified name of the
  -     * implementation class with the key being the system property defined
  -     * above.
  -     * </li>
  -     * <li>
  -     * Use the Services API (as detailed in the JAR specification), if
  -     * available, to determine the classname. The Services API will look
  -     * for a classname in the file
  -     * <code>META-INF/services/javax.xml.transform.TransformerFactory</code>
  -     * in jars available to the runtime.
  -     * </li>
  -     * <li>
  -     * Platform default <code>TransformerFactory</code> instance.
  -     * </li>
  -     * </ul>
  -     *
  -     * Once an application has obtained a reference to a <code>
  -     * TransformerFactory</code> it can use the factory to configure
  -     * and obtain parser instances.
  -     *
  -     * @return new TransformerFactory instance, never null.
  -     *
  -     * @throws TransformerFactoryConfigurationError
  -     * if the implmentation is not available or cannot be instantiated.
  -     */
  -    public static TransformerFactory newInstance()
  -        throws TransformerFactoryConfigurationError
  -    {
  -        try {
  -            return (TransformerFactory) FactoryFinder.find(
  -                /* The default property name according to the JAXP spec */
  -                "javax.xml.transform.TransformerFactory",
  -                /* The fallback implementation class name */
  -                "org.apache.xalan.processor.TransformerFactoryImpl");
  -        } catch (FactoryFinder.ConfigurationError e) {
  -            throw new TransformerFactoryConfigurationError(e.getException(),
  -                                                           e.getMessage());
  -        }
  -    }
  -
  -    /**
  -     * Process the Source into a Transformer object.  Care must
  -     * be given not to use this object in multiple threads running concurrently.
  -     * Different TransformerFactories can be used concurrently by different
  -     * threads.
  -     *
  -     * @param source An object that holds a URI, input stream, etc.
  -     *
  -     * @return A Transformer object that may be used to perform a transformation
  -     * in a single thread, never null.
  -     *
  -     * @exception TransformerConfigurationException May throw this during the parse
  -     *            when it is constructing the Templates object and fails.
  -     */
  -    public abstract Transformer newTransformer(Source source)
  -        throws TransformerConfigurationException;
  -
  -    /**
  -     * Create a new Transformer object that performs a copy
  -     * of the source to the result.
  -     *
  -     * @param source An object that holds a URI, input stream, etc.
  -     *
  -     * @return A Transformer object that may be used to perform a transformation
  -     * in a single thread, never null.
  -     *
  -     * @exception TransformerConfigurationException May throw this during
  -     *            the parse when it is constructing the
  -     *            Templates object and fails.
  -     */
  -    public abstract Transformer newTransformer()
  -        throws TransformerConfigurationException;
  -
  -    /**
  -     * Process the Source into a Templates object, which is a
  -     * a compiled representation of the source. This Templates object
  -     * may then be used concurrently across multiple threads.  Creating
  -     * a Templates object allows the TransformerFactory to do detailed
  -     * performance optimization of transformation instructions, without
  -     * penalizing runtime transformation.
  -     *
  -     * @param source An object that holds a URL, input stream, etc.
  -     *
  -     * @return A Templates object capable of being used for transformation purposes,
  -     * never null.
  -     *
  -     * @exception TransformerConfigurationException May throw this during the parse when it
  -     *            is constructing the Templates object and fails.
  -     */
  -    public abstract Templates newTemplates(Source source)
  -        throws TransformerConfigurationException;
  -
  -    /**
  -     * Get the stylesheet specification(s) associated
  -     * via the xml-stylesheet processing instruction (see
  -     * http://www.w3.org/TR/xml-stylesheet/) with the document
  -     * document specified in the source parameter, and that match
  -     * the given criteria.  Note that it is possible to return several
  -     * stylesheets, in which case they are applied as if they were
  -     * a list of imports or cascades in a single stylesheet.
  -     *
  -     * @param source The XML source document.
  -     * @param media The media attribute to be matched.  May be null, in which
  -     *              case the prefered templates will be used (i.e. alternate = no).
  -     * @param title The value of the title attribute to match.  May be null.
  -     * @param charset The value of the charset attribute to match.  May be null.
  -     *
  -     * @return A Source object suitable for passing to the TransformerFactory.
  -     *
  -     * @throws TransformerConfigurationException.
  -     */
  -    public abstract Source getAssociatedStylesheet(
  -        Source source, String media, String title, String charset)
  -            throws TransformerConfigurationException;
  -
  -    /**
  -     * Set an object that is used by default during the transformation
  -     * to resolve URIs used in xsl:import, or xsl:include.
  -     *
  -     * @param resolver An object that implements the URIResolver interface,
  -     * or null.
  -     */
  -    public abstract void setURIResolver(URIResolver resolver);
  -
  -    /**
  -     * Get the object that is used by default during the transformation
  -     * to resolve URIs used in document(), xsl:import, or xsl:include.
  -     *
  -     * @return The URIResolver that was set with setURIResolver.
  -     */
  -    public abstract URIResolver getURIResolver();
  -
  -    //======= CONFIGURATION METHODS =======
  -
  -    /**
  -     * Look up the value of a feature.
  -     *
  -     * <p>The feature name is any absolute URI.</p>
  -     * @param name The feature name, which is an absolute URI.
  -     * @return The current state of the feature (true or false).
  -     */
  -    public abstract boolean getFeature(String name);
  -
  -    /**
  -     * Allows the user to set specific attributes on the underlying
  -     * implementation.  An attribute in this context is defined to
  -     * be an option that the implementation provides.
  -     *
  -     * @param name The name of the attribute.
  -     * @param value The value of the attribute.
  -     * @throws IllegalArgumentException thrown if the underlying
  -     * implementation doesn't recognize the attribute.
  -     */
  -    public abstract void setAttribute(String name, Object value)
  -        throws IllegalArgumentException;
  -
  -    /**
  -     * Allows the user to retrieve specific attributes on the underlying
  -     * implementation.
  -     * @param name The name of the attribute.
  -     * @return value The value of the attribute.
  -     * @throws IllegalArgumentException thrown if the underlying
  -     * implementation doesn't recognize the attribute.
  -     */
  -    public abstract Object getAttribute(String name)
  -        throws IllegalArgumentException;
  -
  -    /**
  -     * Set the error event listener for the TransformerFactory, which
  -     * is used for the processing of transformation instructions,
  -     * and not for the transformation itself.
  -     *
  -     * @param listener The new error listener.
  -     * @throws IllegalArgumentException if listener is null.
  -     */
  -    public abstract void setErrorListener(ErrorListener listener)
  -        throws IllegalArgumentException;
  -
  -    /**
  -     * Get the error event handler for the TransformerFactory.
  -     *
  -     * @return The current error handler, which should never be null.
  -     */
  -    public abstract ErrorListener getErrorListener();
  -}
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
  +package javax.xml.transform;
  +
  +import java.io.IOException;
  +import java.io.File;
  +import java.io.FileInputStream;
  +import java.io.InputStream;
  +import java.io.InputStreamReader;
  +import java.io.BufferedReader;
  +
  +import java.util.Properties;
  +import java.util.Enumeration;
  +
  +import java.lang.reflect.Method;
  +import java.lang.reflect.InvocationTargetException;
  +
  +/**
  + * A TransformerFactory instance can be used to create
  + * {@link javax.xml.transform.Transformer} and
  + * {@link javax.xml.transform.Templates} objects.
  + *
  + * <p>The system property that determines which Factory implementation to
  + * create is named <code>"javax.xml.transform.TransformerFactory"</code>.
  + * This property names a concrete subclass of the
  + * <code>TransformerFactory</code> abstract class. If the property is not
  + * defined, a platform default is be used.</p>
  + *
  + * An implementation of the <code>TransformerFactory</code> class is
  + * <em>NOT</em> guaranteed to be thread safe. It is up to the user application 
  + * to make sure about the use of the <code>TransformerFactory</code> from 
  + * more than one thread. Alternatively the application can have one instance 
  + * of the <code>TransformerFactory</code> per thread.
  + * An application can use the same instance of the factory to obtain one or 
  + * more instances of a <code>Transformer</code> or <code>Templates</code> 
  + * provided the instance of the factory isn't being used in more than one 
  + * thread at a time.
  + */
  +public abstract class TransformerFactory {
  +    /**
  +     * Default constructor is protected on purpose.
  +     */
  +    protected TransformerFactory() {}
  +
  +    /**
  +     * Obtain a new instance of a <code>TransformerFactory</code>.
  +     * This static method creates a new factory instance
  +     * This method uses the following ordered lookup procedure to determine
  +     * the <code>TransformerFactory</code> implementation class to
  +     * load:
  +     * <ul>
  +     * <li>
  +     * Use the <code>javax.xml.transform.TransformerFactory</code> system
  +     * property.
  +     * </li>
  +     * <li>
  +     * Use the properties file "lib/jaxp.properties" in the JRE directory.
  +     * This configuration file is in standard <code>java.util.Properties
  +     * </code> format and contains the fully qualified name of the
  +     * implementation class with the key being the system property defined
  +     * above.
  +     * </li>
  +     * <li>
  +     * Use the Services API (as detailed in the JAR specification), if
  +     * available, to determine the classname. The Services API will look
  +     * for a classname in the file
  +     * <code>META-INF/services/javax.xml.transform.TransformerFactory</code>
  +     * in jars available to the runtime.
  +     * </li>
  +     * <li>
  +     * Platform default <code>TransformerFactory</code> instance.
  +     * </li>
  +     * </ul>
  +     *
  +     * Once an application has obtained a reference to a <code>
  +     * TransformerFactory</code> it can use the factory to configure
  +     * and obtain parser instances.
  +     *
  +     * @return new TransformerFactory instance, never null.
  +     *
  +     * @throws TransformerFactoryConfigurationError
  +     * if the implmentation is not available or cannot be instantiated.
  +     */
  +    public static TransformerFactory newInstance()
  +        throws TransformerFactoryConfigurationError
  +    {
  +        try {
  +            return (TransformerFactory) FactoryFinder.find(
  +                /* The default property name according to the JAXP spec */
  +                "javax.xml.transform.TransformerFactory",
  +                /* The fallback implementation class name */
  +                "org.apache.xalan.processor.TransformerFactoryImpl");
  +        } catch (FactoryFinder.ConfigurationError e) {
  +            throw new TransformerFactoryConfigurationError(e.getException(),
  +                                                           e.getMessage());
  +        }
  +    }
  +
  +    /**
  +     * Process the Source into a Transformer object.  Care must
  +     * be given not to use this object in multiple threads running concurrently.
  +     * Different TransformerFactories can be used concurrently by different
  +     * threads.
  +     *
  +     * @param source An object that holds a URI, input stream, etc.
  +     *
  +     * @return A Transformer object that may be used to perform a transformation
  +     * in a single thread, never null.
  +     *
  +     * @exception TransformerConfigurationException May throw this during the parse
  +     *            when it is constructing the Templates object and fails.
  +     */
  +    public abstract Transformer newTransformer(Source source)
  +        throws TransformerConfigurationException;
  +
  +    /**
  +     * Create a new Transformer object that performs a copy
  +     * of the source to the result.
  +     *
  +     * @param source An object that holds a URI, input stream, etc.
  +     *
  +     * @return A Transformer object that may be used to perform a transformation
  +     * in a single thread, never null.
  +     *
  +     * @exception TransformerConfigurationException May throw this during
  +     *            the parse when it is constructing the
  +     *            Templates object and fails.
  +     */
  +    public abstract Transformer newTransformer()
  +        throws TransformerConfigurationException;
  +
  +    /**
  +     * Process the Source into a Templates object, which is a
  +     * a compiled representation of the source. This Templates object
  +     * may then be used concurrently across multiple threads.  Creating
  +     * a Templates object allows the TransformerFactory to do detailed
  +     * performance optimization of transformation instructions, without
  +     * penalizing runtime transformation.
  +     *
  +     * @param source An object that holds a URL, input stream, etc.
  +     *
  +     * @return A Templates object capable of being used for transformation purposes,
  +     * never null.
  +     *
  +     * @exception TransformerConfigurationException May throw this during the parse when it
  +     *            is constructing the Templates object and fails.
  +     */
  +    public abstract Templates newTemplates(Source source)
  +        throws TransformerConfigurationException;
  +
  +    /**
  +     * Get the stylesheet specification(s) associated
  +     * via the xml-stylesheet processing instruction (see
  +     * http://www.w3.org/TR/xml-stylesheet/) with the document
  +     * document specified in the source parameter, and that match
  +     * the given criteria.  Note that it is possible to return several
  +     * stylesheets, in which case they are applied as if they were
  +     * a list of imports or cascades in a single stylesheet.
  +     *
  +     * @param source The XML source document.
  +     * @param media The media attribute to be matched.  May be null, in which
  +     *              case the prefered templates will be used (i.e. alternate = no).
  +     * @param title The value of the title attribute to match.  May be null.
  +     * @param charset The value of the charset attribute to match.  May be null.
  +     *
  +     * @return A Source object suitable for passing to the TransformerFactory.
  +     *
  +     * @throws TransformerConfigurationException.
  +     */
  +    public abstract Source getAssociatedStylesheet(
  +        Source source, String media, String title, String charset)
  +            throws TransformerConfigurationException;
  +
  +    /**
  +     * Set an object that is used by default during the transformation
  +     * to resolve URIs used in xsl:import, or xsl:include.
  +     *
  +     * @param resolver An object that implements the URIResolver interface,
  +     * or null.
  +     */
  +    public abstract void setURIResolver(URIResolver resolver);
  +
  +    /**
  +     * Get the object that is used by default during the transformation
  +     * to resolve URIs used in document(), xsl:import, or xsl:include.
  +     *
  +     * @return The URIResolver that was set with setURIResolver.
  +     */
  +    public abstract URIResolver getURIResolver();
  +
  +    //======= CONFIGURATION METHODS =======
  +
  +    /**
  +     * Look up the value of a feature.
  +     *
  +     * <p>The feature name is any absolute URI.</p>
  +     * @param name The feature name, which is an absolute URI.
  +     * @return The current state of the feature (true or false).
  +     */
  +    public abstract boolean getFeature(String name);
  +
  +    /**
  +     * Allows the user to set specific attributes on the underlying
  +     * implementation.  An attribute in this context is defined to
  +     * be an option that the implementation provides.
  +     *
  +     * @param name The name of the attribute.
  +     * @param value The value of the attribute.
  +     * @throws IllegalArgumentException thrown if the underlying
  +     * implementation doesn't recognize the attribute.
  +     */
  +    public abstract void setAttribute(String name, Object value)
  +        throws IllegalArgumentException;
  +
  +    /**
  +     * Allows the user to retrieve specific attributes on the underlying
  +     * implementation.
  +     * @param name The name of the attribute.
  +     * @return value The value of the attribute.
  +     * @throws IllegalArgumentException thrown if the underlying
  +     * implementation doesn't recognize the attribute.
  +     */
  +    public abstract Object getAttribute(String name)
  +        throws IllegalArgumentException;
  +
  +    /**
  +     * Set the error event listener for the TransformerFactory, which
  +     * is used for the processing of transformation instructions,
  +     * and not for the transformation itself.
  +     *
  +     * @param listener The new error listener.
  +     * @throws IllegalArgumentException if listener is null.
  +     */
  +    public abstract void setErrorListener(ErrorListener listener)
  +        throws IllegalArgumentException;
  +
  +    /**
  +     * Get the error event handler for the TransformerFactory.
  +     *
  +     * @return The current error handler, which should never be null.
  +     */
  +    public abstract ErrorListener getErrorListener();
  +}
  
  
  
  1.2       +49 -14    xml-commons/java/external/src/javax/xml/transform/TransformerFactoryConfigurationError.java
  
  Index: TransformerFactoryConfigurationError.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/TransformerFactoryConfigurationError.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TransformerFactoryConfigurationError.java	2001/05/22 01:01:06	1.1
  +++ TransformerFactoryConfigurationError.java	2001/05/22 17:02:20	1.2
  @@ -1,20 +1,55 @@
   /*
  - * $Id: TransformerFactoryConfigurationError.java,v 1.1 2001/05/22 01:01:06 edwingo Exp $
  + * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
    *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   package javax.xml.transform;
   
  
  
  
  1.2       +78 -43    xml-commons/java/external/src/javax/xml/transform/URIResolver.java
  
  Index: URIResolver.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/URIResolver.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- URIResolver.java	2001/05/22 01:01:06	1.1
  +++ URIResolver.java	2001/05/22 17:02:21	1.2
  @@ -1,43 +1,78 @@
  -/**
  - * $Id: URIResolver.java,v 1.1 2001/05/22 01:01:06 edwingo Exp $
  - *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
  - *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  - */
  -package javax.xml.transform;
  -
  -/**
  - * <p>An object that implements this interface that can be called by the processor
  - * to turn a URI used in document(), xsl:import, or xsl:include into a Source object.
  - */
  -public interface URIResolver {
  -
  -    /**
  -     * Called by the processor when it encounters
  -     * an xsl:include, xsl:import, or document() function.
  -     *
  -     * @param href An href attribute, which may be relative or absolute.
  -     * @param base The base URI in effect when the href attribute
  -     * was encountered.
  -     *
  -     * @return A Source object, or null if the href cannot be resolved,
  -     * and the processor should try to resolve the URI itself.
  -     *
  -     * @throws TransformerException if an error occurs when trying to
  -     * resolve the URI.
  -     */
  -    public Source resolve(String href, String base)
  -        throws TransformerException;
  -}
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
  +package javax.xml.transform;
  +
  +/**
  + * <p>An object that implements this interface that can be called by the processor
  + * to turn a URI used in document(), xsl:import, or xsl:include into a Source object.
  + */
  +public interface URIResolver {
  +
  +    /**
  +     * Called by the processor when it encounters
  +     * an xsl:include, xsl:import, or document() function.
  +     *
  +     * @param href An href attribute, which may be relative or absolute.
  +     * @param base The base URI in effect when the href attribute
  +     * was encountered.
  +     *
  +     * @return A Source object, or null if the href cannot be resolved,
  +     * and the processor should try to resolve the URI itself.
  +     *
  +     * @throws TransformerException if an error occurs when trying to
  +     * resolve the URI.
  +     */
  +    public Source resolve(String href, String base)
  +        throws TransformerException;
  +}
  
  
  
  1.2       +50 -15    xml-commons/java/external/src/javax/xml/transform/dom/DOMLocator.java
  
  Index: DOMLocator.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/dom/DOMLocator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DOMLocator.java	2001/05/22 01:01:07	1.1
  +++ DOMLocator.java	2001/05/22 17:03:46	1.2
  @@ -1,20 +1,55 @@
  -/**
  - * $Id: DOMLocator.java,v 1.1 2001/05/22 01:01:07 edwingo Exp $
  +/*
  + * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
    *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   package javax.xml.transform.dom;
   
  
  
  
  1.2       +177 -142  xml-commons/java/external/src/javax/xml/transform/dom/DOMResult.java
  
  Index: DOMResult.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/dom/DOMResult.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DOMResult.java	2001/05/22 01:01:07	1.1
  +++ DOMResult.java	2001/05/22 17:03:50	1.2
  @@ -1,142 +1,177 @@
  -/**
  - * $Id: DOMResult.java,v 1.1 2001/05/22 01:01:07 edwingo Exp $
  - *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
  - *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  - */
  -package javax.xml.transform.dom;
  -
  -import javax.xml.transform.*;
  -
  -import java.lang.String;
  -
  -import java.io.OutputStream;
  -import java.io.Writer;
  -
  -import org.w3c.dom.Node;
  -
  -
  -/**
  - * Acts as a holder for a transformation result tree, in the
  - * form of a Document Object Model (DOM) tree. If no output DOM source is set,
  - * the transformation will create a Document node as the holder
  - * for the result of the transformation, which may be retrieved
  - * with getNode.
  - */
  -public class DOMResult implements Result {
  -
  -    /** If {@link javax.xml.transform.TransformerFactory#getFeature}
  -     * returns true when passed this value as an argument,
  -     * the Transformer supports Result output of this type.
  -     */
  -    public static final String FEATURE =
  -        "http://javax.xml.transform.dom.DOMResult/feature";
  -
  -    /**
  -     * Zero-argument default constructor.
  -     */
  -    public DOMResult() {}
  -
  -    /**
  -     * Use a DOM node to create a new output target. In practice,
  -     * the node should be a {@link org.w3c.dom.Document} node,
  -     * a {@link org.w3c.dom.DocumentFragment} node, or a
  -     * {@link org.w3c.dom.Element} node.  In other words, a node
  -     * that accepts children.
  -     *
  -     * @param n The DOM node that will contain the result tree.
  -     */
  -    public DOMResult(Node node) {
  -        setNode(node);
  -    }
  -
  -    /**
  -     * Create a new output target with a DOM node. In practice,
  -     * the node should be a {@link org.w3c.dom.Document} node,
  -     * a {@link org.w3c.dom.DocumentFragment} node, or a
  -     * {@link org.w3c.dom.Element} node.  In other words, a node
  -     * that accepts children.
  -     *
  -     * @param node The DOM node that will contain the result tree.
  -     * @param systemID The system identifier which may be used in association
  -     * with this node.
  -     */
  -    public DOMResult(Node node, String systemID) {
  -        setNode(node);
  -        setSystemId(systemID);
  -    }
  -
  -    /**
  -     * Set the node that will contain the result DOM tree.  In practice,
  -     * the node should be a {@link org.w3c.dom.Document} node,
  -     * a {@link org.w3c.dom.DocumentFragment} node, or a
  -     * {@link org.w3c.dom.Element} node.  In other words, a node
  -     * that accepts children.
  -     *
  -     * @param node The node to which the transformation
  -     * will be appended.
  -     */
  -    public void setNode(Node node) {
  -        this.node = node;
  -    }
  -
  -    /**
  -     * Get the node that will contain the result DOM tree.
  -     * If no node was set via setNode, the node will be
  -     * set by the transformation, and may be obtained from
  -     * this method once the transformation is complete.
  -     *
  -     * @return The node to which the transformation
  -     * will be appended.
  -     */
  -    public Node getNode() {
  -        return node;
  -    }
  -
  -    /**
  -     * Method setSystemId Set the systemID that may be used in association
  -     * with the node.
  -     *
  -     * @param systemId The system identifier as a URI string.
  -     */
  -    public void setSystemId(String systemId) {
  -        this.systemId = systemId;
  -    }
  -
  -    /**
  -     * Get the system identifier that was set with setSystemId.
  -     *
  -     * @return The system identifier that was set with setSystemId, or null
  -     * if setSystemId was not called.
  -     */
  -    public String getSystemId() {
  -        return systemId;
  -    }
  -
  -    //////////////////////////////////////////////////////////////////////
  -    // Internal state.
  -    //////////////////////////////////////////////////////////////////////
  -
  -    /**
  -     * The node to which the transformation will be appended.
  -     */
  -    private Node node;
  -
  -    /**
  -     * The systemID that may be used in association
  -     * with the node.
  -     */
  -    private String systemId;
  -}
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
  +package javax.xml.transform.dom;
  +
  +import javax.xml.transform.*;
  +
  +import java.lang.String;
  +
  +import java.io.OutputStream;
  +import java.io.Writer;
  +
  +import org.w3c.dom.Node;
  +
  +
  +/**
  + * Acts as a holder for a transformation result tree, in the
  + * form of a Document Object Model (DOM) tree. If no output DOM source is set,
  + * the transformation will create a Document node as the holder
  + * for the result of the transformation, which may be retrieved
  + * with getNode.
  + */
  +public class DOMResult implements Result {
  +
  +    /** If {@link javax.xml.transform.TransformerFactory#getFeature}
  +     * returns true when passed this value as an argument,
  +     * the Transformer supports Result output of this type.
  +     */
  +    public static final String FEATURE =
  +        "http://javax.xml.transform.dom.DOMResult/feature";
  +
  +    /**
  +     * Zero-argument default constructor.
  +     */
  +    public DOMResult() {}
  +
  +    /**
  +     * Use a DOM node to create a new output target. In practice,
  +     * the node should be a {@link org.w3c.dom.Document} node,
  +     * a {@link org.w3c.dom.DocumentFragment} node, or a
  +     * {@link org.w3c.dom.Element} node.  In other words, a node
  +     * that accepts children.
  +     *
  +     * @param n The DOM node that will contain the result tree.
  +     */
  +    public DOMResult(Node node) {
  +        setNode(node);
  +    }
  +
  +    /**
  +     * Create a new output target with a DOM node. In practice,
  +     * the node should be a {@link org.w3c.dom.Document} node,
  +     * a {@link org.w3c.dom.DocumentFragment} node, or a
  +     * {@link org.w3c.dom.Element} node.  In other words, a node
  +     * that accepts children.
  +     *
  +     * @param node The DOM node that will contain the result tree.
  +     * @param systemID The system identifier which may be used in association
  +     * with this node.
  +     */
  +    public DOMResult(Node node, String systemID) {
  +        setNode(node);
  +        setSystemId(systemID);
  +    }
  +
  +    /**
  +     * Set the node that will contain the result DOM tree.  In practice,
  +     * the node should be a {@link org.w3c.dom.Document} node,
  +     * a {@link org.w3c.dom.DocumentFragment} node, or a
  +     * {@link org.w3c.dom.Element} node.  In other words, a node
  +     * that accepts children.
  +     *
  +     * @param node The node to which the transformation
  +     * will be appended.
  +     */
  +    public void setNode(Node node) {
  +        this.node = node;
  +    }
  +
  +    /**
  +     * Get the node that will contain the result DOM tree.
  +     * If no node was set via setNode, the node will be
  +     * set by the transformation, and may be obtained from
  +     * this method once the transformation is complete.
  +     *
  +     * @return The node to which the transformation
  +     * will be appended.
  +     */
  +    public Node getNode() {
  +        return node;
  +    }
  +
  +    /**
  +     * Method setSystemId Set the systemID that may be used in association
  +     * with the node.
  +     *
  +     * @param systemId The system identifier as a URI string.
  +     */
  +    public void setSystemId(String systemId) {
  +        this.systemId = systemId;
  +    }
  +
  +    /**
  +     * Get the system identifier that was set with setSystemId.
  +     *
  +     * @return The system identifier that was set with setSystemId, or null
  +     * if setSystemId was not called.
  +     */
  +    public String getSystemId() {
  +        return systemId;
  +    }
  +
  +    //////////////////////////////////////////////////////////////////////
  +    // Internal state.
  +    //////////////////////////////////////////////////////////////////////
  +
  +    /**
  +     * The node to which the transformation will be appended.
  +     */
  +    private Node node;
  +
  +    /**
  +     * The systemID that may be used in association
  +     * with the node.
  +     */
  +    private String systemId;
  +}
  
  
  
  1.2       +166 -131  xml-commons/java/external/src/javax/xml/transform/dom/DOMSource.java
  
  Index: DOMSource.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/dom/DOMSource.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DOMSource.java	2001/05/22 01:01:07	1.1
  +++ DOMSource.java	2001/05/22 17:03:56	1.2
  @@ -1,131 +1,166 @@
  -/**
  - * $Id: DOMSource.java,v 1.1 2001/05/22 01:01:07 edwingo Exp $
  - *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
  - *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  - */
  -package javax.xml.transform.dom;
  -
  -import javax.xml.transform.*;
  -
  -import java.lang.String;
  -
  -import java.io.OutputStream;
  -import java.io.Writer;
  -
  -import org.w3c.dom.Node;
  -
  -
  -/**
  - * Acts as a holder for a transformation Source tree in the
  - * form of a Document Object Model (DOM) tree.
  - *
  - * @see <a href="http://www.w3.org/TR/DOM-Level-2">Document Object Model (DOM) Level 2 Specification</a>
  - */
  -public class DOMSource implements Source {
  -
  -    /** If {@link javax.xml.transform.TransformerFactory#getFeature}
  -     * returns true when passed this value as an argument,
  -     * the Transformer supports Source input of this type.
  -     */
  -    public static final String FEATURE =
  -        "http://javax.xml.transform.dom.DOMSource/feature";
  -
  -    /**
  -     * Zero-argument default constructor.  If this is used, and
  -     * no DOM source is set, then the Transformer will
  -     * create an empty source Document using
  -     * {@link javax.xml.parsers.DocumentBuilder#newDocument}.
  -     */
  -    public DOMSource() {}
  -
  -    /**
  -     * Create a new input source with a DOM node.  The operation
  -     * will be applied to the subtree rooted at this node.  In XSLT,
  -     * a "/" pattern still means the root of the tree (not the subtree),
  -     * and the evaluation of global variables and parameters is done
  -     * from the root node also.
  -     *
  -     * @param n The DOM node that will contain the Source tree.
  -     */
  -    public DOMSource(Node n) {
  -        setNode(n);
  -    }
  -
  -    /**
  -     * Create a new input source with a DOM node, and with the
  -     * system ID also passed in as the base URI.
  -     *
  -     * @param node The DOM node that will contain the Source tree.
  -     * @param systemID Specifies the base URI associated with node.
  -     */
  -    public DOMSource(Node node, String systemID) {
  -        setNode(node);
  -        setSystemId(systemID);
  -    }
  -
  -    /**
  -     * Set the node that will represents a Source DOM tree.
  -     *
  -     * @param node The node that is to be transformed.
  -     */
  -    public void setNode(Node node) {
  -        this.node = node;
  -    }
  -
  -    /**
  -     * Get the node that represents a Source DOM tree.
  -     *
  -     * @return The node that is to be transformed.
  -     */
  -    public Node getNode() {
  -        return node;
  -    }
  -
  -    /**
  -     * Set the base ID (URL or system ID) from where URLs
  -     * will be resolved.
  -     *
  -     * @param baseID Base URL for this DOM tree.
  -     */
  -    public void setSystemId(String baseID) {
  -        this.baseID = baseID;
  -    }
  -
  -    /**
  -     * Get the base ID (URL or system ID) from where URLs
  -     * will be resolved.
  -     *
  -     * @return Base URL for this DOM tree.
  -     */
  -    public String getSystemId() {
  -        return this.baseID;
  -    }
  -
  -    //////////////////////////////////////////////////////////////////////
  -    // Internal state.
  -    //////////////////////////////////////////////////////////////////////
  -
  -    /**
  -     * Field node
  -     */
  -    private Node node;
  -
  -    /**
  -     * The base ID (URL or system ID) from where URLs
  -     * will be resolved.
  -     */
  -    String baseID;
  -}
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
  +package javax.xml.transform.dom;
  +
  +import javax.xml.transform.*;
  +
  +import java.lang.String;
  +
  +import java.io.OutputStream;
  +import java.io.Writer;
  +
  +import org.w3c.dom.Node;
  +
  +
  +/**
  + * Acts as a holder for a transformation Source tree in the
  + * form of a Document Object Model (DOM) tree.
  + *
  + * @see <a href="http://www.w3.org/TR/DOM-Level-2">Document Object Model (DOM) Level 2 Specification</a>
  + */
  +public class DOMSource implements Source {
  +
  +    /** If {@link javax.xml.transform.TransformerFactory#getFeature}
  +     * returns true when passed this value as an argument,
  +     * the Transformer supports Source input of this type.
  +     */
  +    public static final String FEATURE =
  +        "http://javax.xml.transform.dom.DOMSource/feature";
  +
  +    /**
  +     * Zero-argument default constructor.  If this is used, and
  +     * no DOM source is set, then the Transformer will
  +     * create an empty source Document using
  +     * {@link javax.xml.parsers.DocumentBuilder#newDocument}.
  +     */
  +    public DOMSource() {}
  +
  +    /**
  +     * Create a new input source with a DOM node.  The operation
  +     * will be applied to the subtree rooted at this node.  In XSLT,
  +     * a "/" pattern still means the root of the tree (not the subtree),
  +     * and the evaluation of global variables and parameters is done
  +     * from the root node also.
  +     *
  +     * @param n The DOM node that will contain the Source tree.
  +     */
  +    public DOMSource(Node n) {
  +        setNode(n);
  +    }
  +
  +    /**
  +     * Create a new input source with a DOM node, and with the
  +     * system ID also passed in as the base URI.
  +     *
  +     * @param node The DOM node that will contain the Source tree.
  +     * @param systemID Specifies the base URI associated with node.
  +     */
  +    public DOMSource(Node node, String systemID) {
  +        setNode(node);
  +        setSystemId(systemID);
  +    }
  +
  +    /**
  +     * Set the node that will represents a Source DOM tree.
  +     *
  +     * @param node The node that is to be transformed.
  +     */
  +    public void setNode(Node node) {
  +        this.node = node;
  +    }
  +
  +    /**
  +     * Get the node that represents a Source DOM tree.
  +     *
  +     * @return The node that is to be transformed.
  +     */
  +    public Node getNode() {
  +        return node;
  +    }
  +
  +    /**
  +     * Set the base ID (URL or system ID) from where URLs
  +     * will be resolved.
  +     *
  +     * @param baseID Base URL for this DOM tree.
  +     */
  +    public void setSystemId(String baseID) {
  +        this.baseID = baseID;
  +    }
  +
  +    /**
  +     * Get the base ID (URL or system ID) from where URLs
  +     * will be resolved.
  +     *
  +     * @return Base URL for this DOM tree.
  +     */
  +    public String getSystemId() {
  +        return this.baseID;
  +    }
  +
  +    //////////////////////////////////////////////////////////////////////
  +    // Internal state.
  +    //////////////////////////////////////////////////////////////////////
  +
  +    /**
  +     * Field node
  +     */
  +    private Node node;
  +
  +    /**
  +     * The base ID (URL or system ID) from where URLs
  +     * will be resolved.
  +     */
  +    String baseID;
  +}
  
  
  
  1.2       +50 -15    xml-commons/java/external/src/javax/xml/transform/sax/SAXResult.java
  
  Index: SAXResult.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/sax/SAXResult.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SAXResult.java	2001/05/22 01:01:08	1.1
  +++ SAXResult.java	2001/05/22 17:04:24	1.2
  @@ -1,20 +1,55 @@
  -/**
  - * $Id: SAXResult.java,v 1.1 2001/05/22 01:01:08 edwingo Exp $
  +/*
  + * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
    *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   package javax.xml.transform.sax;
   
  
  
  
  1.2       +50 -15    xml-commons/java/external/src/javax/xml/transform/sax/SAXSource.java
  
  Index: SAXSource.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/sax/SAXSource.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SAXSource.java	2001/05/22 01:01:08	1.1
  +++ SAXSource.java	2001/05/22 17:04:28	1.2
  @@ -1,20 +1,55 @@
  -/**
  - * $Id: SAXSource.java,v 1.1 2001/05/22 01:01:08 edwingo Exp $
  +/*
  + * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
    *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   package javax.xml.transform.sax;
   
  
  
  
  1.2       +184 -149  xml-commons/java/external/src/javax/xml/transform/sax/SAXTransformerFactory.java
  
  Index: SAXTransformerFactory.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/sax/SAXTransformerFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SAXTransformerFactory.java	2001/05/22 01:01:08	1.1
  +++ SAXTransformerFactory.java	2001/05/22 17:04:32	1.2
  @@ -1,149 +1,184 @@
  -/**
  - * $Id: SAXTransformerFactory.java,v 1.1 2001/05/22 01:01:08 edwingo Exp $
  - *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
  - *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  - */
  -package javax.xml.transform.sax;
  -
  -import javax.xml.transform.*;
  -
  -import org.xml.sax.InputSource;
  -import org.xml.sax.SAXException;
  -import org.xml.sax.SAXNotSupportedException;
  -import org.xml.sax.SAXNotRecognizedException;
  -import org.xml.sax.XMLReader;
  -import org.xml.sax.XMLFilter;
  -
  -
  -/**
  - * This class extends TransformerFactory to provide SAX-specific
  - * factory methods.  It provides two types of ContentHandlers,
  - * one for creating Transformers, the other for creating Templates
  - * objects.
  - *
  - * <p>If an application wants to set the ErrorHandler or EntityResolver
  - * for an XMLReader used during a transformation, it should use a URIResolver
  - * to return the SAXSource which provides (with getXMLReader) a reference to
  - * the XMLReader.</p>
  - */
  -public abstract class SAXTransformerFactory extends TransformerFactory {
  -
  -    /** If {@link javax.xml.transform.TransformerFactory#getFeature}
  -     * returns true when passed this value as an argument,
  -     * the TransformerFactory returned from
  -     * {@link javax.xml.transform.TransformerFactory#newInstance} may
  -     * be safely cast to a SAXTransformerFactory.
  -     */
  -    public static final String FEATURE =
  -        "http://javax.xml.transform.sax.SAXTransformerFactory/feature";
  -
  -    /** If {@link javax.xml.transform.TransformerFactory#getFeature}
  -     * returns true when passed this value as an argument,
  -     * the {@link #newXMLFilter(Source src)}
  -     * and {@link #newXMLFilter(Templates templates)} methods are supported.
  -     */
  -    public static final String FEATURE_XMLFILTER =
  -        "http://javax.xml.transform.sax.SAXTransformerFactory/feature/xmlfilter";
  -
  -    /**
  -     * The default constructor is protected on purpose.
  -     */
  -    protected SAXTransformerFactory() {}
  -
  -    /**
  -     * Get a TransformerHandler object that can process SAX
  -     * ContentHandler events into a Result, based on the transformation
  -     * instructions specified by the argument.
  -     *
  -     * @param src The Source of the transformation instructions.
  -     *
  -     * @return TransformerHandler ready to transform SAX events.
  -     *
  -     * @throws TransformerConfigurationException If for some reason the
  -     * TransformerHandler can not be created.
  -     */
  -    public abstract TransformerHandler newTransformerHandler(Source src)
  -        throws TransformerConfigurationException;
  -
  -    /**
  -     * Get a TransformerHandler object that can process SAX
  -     * ContentHandler events into a Result, based on the Templates argument.
  -     *
  -     * @param templates The compiled transformation instructions.
  -     *
  -     * @return TransformerHandler ready to transform SAX events.
  -     *
  -     * @throws TransformerConfigurationException If for some reason the
  -     * TransformerHandler can not be created.
  -     */
  -    public abstract TransformerHandler newTransformerHandler(
  -        Templates templates) throws TransformerConfigurationException;
  -
  -    /**
  -     * Get a TransformerHandler object that can process SAX
  -     * ContentHandler events into a Result. The transformation
  -     * is defined as an identity (or copy) transformation, for example
  -     * to copy a series of SAX parse events into a DOM tree.
  -     *
  -     * @return A non-null reference to a TransformerHandler, that may
  -     * be used as a ContentHandler for SAX parse events.
  -     *
  -     * @throws TransformerConfigurationException If for some reason the
  -     * TransformerHandler cannot be created.
  -     */
  -    public abstract TransformerHandler newTransformerHandler()
  -        throws TransformerConfigurationException;
  -
  -    /**
  -     * Get a TemplatesHandler object that can process SAX
  -     * ContentHandler events into a Templates object.
  -     *
  -     * @return A non-null reference to a TransformerHandler, that may
  -     * be used as a ContentHandler for SAX parse events.
  -     *
  -     * @throws TransformerConfigurationException If for some reason the
  -     * TemplatesHandler cannot be created.
  -     */
  -    public abstract TemplatesHandler newTemplatesHandler()
  -        throws TransformerConfigurationException;
  -
  -    /**
  -     * Create an XMLFilter that uses the given Source as the
  -     * transformation instructions.
  -     *
  -     * @param src The Source of the transformation instructions.
  -     *
  -     * @return An XMLFilter object, or null if this feature is not supported.
  -     *
  -     * @throws TransformerConfigurationException If for some reason the
  -     * TemplatesHandler cannot be created.
  -     */
  -    public abstract XMLFilter newXMLFilter(Source src)
  -        throws TransformerConfigurationException;
  -
  -    /**
  -     * Create an XMLFilter, based on the Templates argument..
  -     *
  -     * @param templates The compiled transformation instructions.
  -     *
  -     * @return An XMLFilter object, or null if this feature is not supported.
  -     *
  -     * @throws TransformerConfigurationException If for some reason the
  -     * TemplatesHandler cannot be created.
  -     */
  -    public abstract XMLFilter newXMLFilter(Templates templates)
  -        throws TransformerConfigurationException;
  -}
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
  +package javax.xml.transform.sax;
  +
  +import javax.xml.transform.*;
  +
  +import org.xml.sax.InputSource;
  +import org.xml.sax.SAXException;
  +import org.xml.sax.SAXNotSupportedException;
  +import org.xml.sax.SAXNotRecognizedException;
  +import org.xml.sax.XMLReader;
  +import org.xml.sax.XMLFilter;
  +
  +
  +/**
  + * This class extends TransformerFactory to provide SAX-specific
  + * factory methods.  It provides two types of ContentHandlers,
  + * one for creating Transformers, the other for creating Templates
  + * objects.
  + *
  + * <p>If an application wants to set the ErrorHandler or EntityResolver
  + * for an XMLReader used during a transformation, it should use a URIResolver
  + * to return the SAXSource which provides (with getXMLReader) a reference to
  + * the XMLReader.</p>
  + */
  +public abstract class SAXTransformerFactory extends TransformerFactory {
  +
  +    /** If {@link javax.xml.transform.TransformerFactory#getFeature}
  +     * returns true when passed this value as an argument,
  +     * the TransformerFactory returned from
  +     * {@link javax.xml.transform.TransformerFactory#newInstance} may
  +     * be safely cast to a SAXTransformerFactory.
  +     */
  +    public static final String FEATURE =
  +        "http://javax.xml.transform.sax.SAXTransformerFactory/feature";
  +
  +    /** If {@link javax.xml.transform.TransformerFactory#getFeature}
  +     * returns true when passed this value as an argument,
  +     * the {@link #newXMLFilter(Source src)}
  +     * and {@link #newXMLFilter(Templates templates)} methods are supported.
  +     */
  +    public static final String FEATURE_XMLFILTER =
  +        "http://javax.xml.transform.sax.SAXTransformerFactory/feature/xmlfilter";
  +
  +    /**
  +     * The default constructor is protected on purpose.
  +     */
  +    protected SAXTransformerFactory() {}
  +
  +    /**
  +     * Get a TransformerHandler object that can process SAX
  +     * ContentHandler events into a Result, based on the transformation
  +     * instructions specified by the argument.
  +     *
  +     * @param src The Source of the transformation instructions.
  +     *
  +     * @return TransformerHandler ready to transform SAX events.
  +     *
  +     * @throws TransformerConfigurationException If for some reason the
  +     * TransformerHandler can not be created.
  +     */
  +    public abstract TransformerHandler newTransformerHandler(Source src)
  +        throws TransformerConfigurationException;
  +
  +    /**
  +     * Get a TransformerHandler object that can process SAX
  +     * ContentHandler events into a Result, based on the Templates argument.
  +     *
  +     * @param templates The compiled transformation instructions.
  +     *
  +     * @return TransformerHandler ready to transform SAX events.
  +     *
  +     * @throws TransformerConfigurationException If for some reason the
  +     * TransformerHandler can not be created.
  +     */
  +    public abstract TransformerHandler newTransformerHandler(
  +        Templates templates) throws TransformerConfigurationException;
  +
  +    /**
  +     * Get a TransformerHandler object that can process SAX
  +     * ContentHandler events into a Result. The transformation
  +     * is defined as an identity (or copy) transformation, for example
  +     * to copy a series of SAX parse events into a DOM tree.
  +     *
  +     * @return A non-null reference to a TransformerHandler, that may
  +     * be used as a ContentHandler for SAX parse events.
  +     *
  +     * @throws TransformerConfigurationException If for some reason the
  +     * TransformerHandler cannot be created.
  +     */
  +    public abstract TransformerHandler newTransformerHandler()
  +        throws TransformerConfigurationException;
  +
  +    /**
  +     * Get a TemplatesHandler object that can process SAX
  +     * ContentHandler events into a Templates object.
  +     *
  +     * @return A non-null reference to a TransformerHandler, that may
  +     * be used as a ContentHandler for SAX parse events.
  +     *
  +     * @throws TransformerConfigurationException If for some reason the
  +     * TemplatesHandler cannot be created.
  +     */
  +    public abstract TemplatesHandler newTemplatesHandler()
  +        throws TransformerConfigurationException;
  +
  +    /**
  +     * Create an XMLFilter that uses the given Source as the
  +     * transformation instructions.
  +     *
  +     * @param src The Source of the transformation instructions.
  +     *
  +     * @return An XMLFilter object, or null if this feature is not supported.
  +     *
  +     * @throws TransformerConfigurationException If for some reason the
  +     * TemplatesHandler cannot be created.
  +     */
  +    public abstract XMLFilter newXMLFilter(Source src)
  +        throws TransformerConfigurationException;
  +
  +    /**
  +     * Create an XMLFilter, based on the Templates argument..
  +     *
  +     * @param templates The compiled transformation instructions.
  +     *
  +     * @return An XMLFilter object, or null if this feature is not supported.
  +     *
  +     * @throws TransformerConfigurationException If for some reason the
  +     * TemplatesHandler cannot be created.
  +     */
  +    public abstract XMLFilter newXMLFilter(Templates templates)
  +        throws TransformerConfigurationException;
  +}
  
  
  
  1.2       +98 -63    xml-commons/java/external/src/javax/xml/transform/sax/TemplatesHandler.java
  
  Index: TemplatesHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/sax/TemplatesHandler.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TemplatesHandler.java	2001/05/22 01:01:08	1.1
  +++ TemplatesHandler.java	2001/05/22 17:04:38	1.2
  @@ -1,63 +1,98 @@
  -/**
  - * $Id: TemplatesHandler.java,v 1.1 2001/05/22 01:01:08 edwingo Exp $
  - *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
  - *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  - */
  -package javax.xml.transform.sax;
  -
  -import javax.xml.transform.*;
  -
  -import org.xml.sax.ContentHandler;
  -import org.xml.sax.ext.LexicalHandler;
  -
  -
  -/**
  - * A SAX ContentHandler that may be used to process SAX
  - * parse events (parsing transformation instructions) into a Templates object.
  - *
  - * <p>Note that TemplatesHandler does not need to implement LexicalHandler.</p>
  - */
  -public interface TemplatesHandler extends ContentHandler {
  -
  -    /**
  -     * When a TemplatesHandler object is used as a ContentHandler
  -     * for the parsing of transformation instructions, it creates a Templates object,
  -     * which the caller can get once the SAX events have been completed.
  -     *
  -     * @return The Templates object that was created during
  -     * the SAX event process, or null if no Templates object has
  -     * been created.
  -     *
  -     */
  -    public Templates getTemplates();
  -
  -    /**
  -     * Set the base ID (URI or system ID) for the Templates object
  -     * created by this builder.  This must be set in order to
  -     * resolve relative URIs in the stylesheet.  This must be
  -     * called before the startDocument event.
  -     *
  -     * @param baseID Base URI for this stylesheet.
  -     */
  -    public void setSystemId(String systemID);
  -
  -    /**
  -     * Get the base ID (URI or system ID) from where relative
  -     * URLs will be resolved.
  -     * @return The systemID that was set with {@link #setSystemId}.
  -     */
  -    public String getSystemId();
  -}
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
  +package javax.xml.transform.sax;
  +
  +import javax.xml.transform.*;
  +
  +import org.xml.sax.ContentHandler;
  +import org.xml.sax.ext.LexicalHandler;
  +
  +
  +/**
  + * A SAX ContentHandler that may be used to process SAX
  + * parse events (parsing transformation instructions) into a Templates object.
  + *
  + * <p>Note that TemplatesHandler does not need to implement LexicalHandler.</p>
  + */
  +public interface TemplatesHandler extends ContentHandler {
  +
  +    /**
  +     * When a TemplatesHandler object is used as a ContentHandler
  +     * for the parsing of transformation instructions, it creates a Templates object,
  +     * which the caller can get once the SAX events have been completed.
  +     *
  +     * @return The Templates object that was created during
  +     * the SAX event process, or null if no Templates object has
  +     * been created.
  +     *
  +     */
  +    public Templates getTemplates();
  +
  +    /**
  +     * Set the base ID (URI or system ID) for the Templates object
  +     * created by this builder.  This must be set in order to
  +     * resolve relative URIs in the stylesheet.  This must be
  +     * called before the startDocument event.
  +     *
  +     * @param baseID Base URI for this stylesheet.
  +     */
  +    public void setSystemId(String systemID);
  +
  +    /**
  +     * Get the base ID (URI or system ID) from where relative
  +     * URLs will be resolved.
  +     * @return The systemID that was set with {@link #setSystemId}.
  +     */
  +    public String getSystemId();
  +}
  
  
  
  1.2       +105 -70   xml-commons/java/external/src/javax/xml/transform/sax/TransformerHandler.java
  
  Index: TransformerHandler.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/sax/TransformerHandler.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TransformerHandler.java	2001/05/22 01:01:09	1.1
  +++ TransformerHandler.java	2001/05/22 17:04:44	1.2
  @@ -1,70 +1,105 @@
  -/**
  - * $Id: TransformerHandler.java,v 1.1 2001/05/22 01:01:09 edwingo Exp $
  - *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
  - *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  - */
  -package javax.xml.transform.sax;
  -
  -import java.util.Properties;
  -
  -import javax.xml.transform.Result;
  -import javax.xml.transform.URIResolver;
  -import javax.xml.transform.TransformerException;
  -import javax.xml.transform.Transformer;
  -
  -import org.xml.sax.ContentHandler;
  -import org.xml.sax.ext.LexicalHandler;
  -import org.xml.sax.DTDHandler;
  -
  -
  -/**
  - * A TransformerHandler
  - * listens for SAX ContentHandler parse events and transforms
  - * them to a Result.
  - */
  -public interface TransformerHandler
  -    extends ContentHandler, LexicalHandler, DTDHandler {
  -
  -    /**
  -     * Enables the user of the TransformerHandler to set the
  -     * to set the Result for the transformation.
  -     *
  -     * @param result A Result instance, should not be null.
  -     *
  -     * @throws IllegalArgumentException if result is invalid for some reason.
  -     */
  -    public void setResult(Result result) throws IllegalArgumentException;
  -
  -    /**
  -     * Set the base ID (URI or system ID) from where relative
  -     * URLs will be resolved.
  -     * @param systemID Base URI for the source tree.
  -     */
  -    public void setSystemId(String systemID);
  -
  -    /**
  -     * Get the base ID (URI or system ID) from where relative
  -     * URLs will be resolved.
  -     * @return The systemID that was set with {@link #setSystemId}.
  -     */
  -    public String getSystemId();
  -
  -    /**
  -     * Get the Transformer associated with this handler, which
  -     * is needed in order to set parameters and output properties.
  -     */
  -    public Transformer getTransformer();
  -}
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
  +package javax.xml.transform.sax;
  +
  +import java.util.Properties;
  +
  +import javax.xml.transform.Result;
  +import javax.xml.transform.URIResolver;
  +import javax.xml.transform.TransformerException;
  +import javax.xml.transform.Transformer;
  +
  +import org.xml.sax.ContentHandler;
  +import org.xml.sax.ext.LexicalHandler;
  +import org.xml.sax.DTDHandler;
  +
  +
  +/**
  + * A TransformerHandler
  + * listens for SAX ContentHandler parse events and transforms
  + * them to a Result.
  + */
  +public interface TransformerHandler
  +    extends ContentHandler, LexicalHandler, DTDHandler {
  +
  +    /**
  +     * Enables the user of the TransformerHandler to set the
  +     * to set the Result for the transformation.
  +     *
  +     * @param result A Result instance, should not be null.
  +     *
  +     * @throws IllegalArgumentException if result is invalid for some reason.
  +     */
  +    public void setResult(Result result) throws IllegalArgumentException;
  +
  +    /**
  +     * Set the base ID (URI or system ID) from where relative
  +     * URLs will be resolved.
  +     * @param systemID Base URI for the source tree.
  +     */
  +    public void setSystemId(String systemID);
  +
  +    /**
  +     * Get the base ID (URI or system ID) from where relative
  +     * URLs will be resolved.
  +     * @return The systemID that was set with {@link #setSystemId}.
  +     */
  +    public String getSystemId();
  +
  +    /**
  +     * Get the Transformer associated with this handler, which
  +     * is needed in order to set parameters and output properties.
  +     */
  +    public Transformer getTransformer();
  +}
  
  
  
  1.2       +224 -189  xml-commons/java/external/src/javax/xml/transform/stream/StreamResult.java
  
  Index: StreamResult.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/stream/StreamResult.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StreamResult.java	2001/05/22 01:01:09	1.1
  +++ StreamResult.java	2001/05/22 17:05:38	1.2
  @@ -1,189 +1,224 @@
  -/**
  - * $Id: StreamResult.java,v 1.1 2001/05/22 01:01:09 edwingo Exp $
  - *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
  - *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  - */
  -package javax.xml.transform.stream;
  -
  -import javax.xml.transform.*;
  -
  -import java.lang.String;
  -
  -import java.io.OutputStream;
  -import java.io.Writer;
  -import java.io.File;
  -
  -
  -/**
  - * Acts as an holder for a transformation result,
  - * which may be XML, plain Text, HTML, or some other form of markup.
  - *
  - */
  -public class StreamResult implements Result {
  -
  -    /** If {@link javax.xml.transform.TransformerFactory#getFeature}
  -     * returns true when passed this value as an argument,
  -     * the Transformer supports Result output of this type.
  -     */
  -    public static final String FEATURE =
  -        "http://javax.xml.transform.stream.StreamResult/feature";
  -
  -    /**
  -     * Zero-argument default constructor.
  -     */
  -    public StreamResult() {}
  -
  -    /**
  -     * Construct a StreamResult from a byte stream.  Normally,
  -     * a stream should be used rather than a reader, so that
  -     * the transformer may use instructions contained in the
  -     * transformation instructions to control the encoding.
  -     *
  -     * @param outputStream A valid OutputStream reference.
  -     */
  -    public StreamResult(OutputStream outputStream) {
  -        setOutputStream(outputStream);
  -    }
  -
  -    /**
  -     * Construct a StreamResult from a character stream.  Normally,
  -     * a stream should be used rather than a reader, so that
  -     * the transformer may use instructions contained in the
  -     * transformation instructions to control the encoding.  However,
  -     * there are times when it is useful to write to a character
  -     * stream, such as when using a StringWriter.
  -     *
  -     * @param writer  A valid Writer reference.
  -     */
  -    public StreamResult(Writer writer) {
  -        setWriter(writer);
  -    }
  -
  -    /**
  -     * Construct a StreamResult from a URL.
  -     *
  -     * @param systemId Must be a String that conforms to the URI syntax.
  -     */
  -    public StreamResult(String systemId) {
  -        this.systemId = systemId;
  -    }
  -
  -    /**
  -     * Construct a StreamResult from a File.
  -     *
  -     * @param f Must a non-null File reference.
  -     */
  -    public StreamResult(File f) {
  -        setSystemId(f);
  -    }
  -
  -    /**
  -     * Set the ByteStream that is to be written to.  Normally,
  -     * a stream should be used rather than a reader, so that
  -     * the transformer may use instructions contained in the
  -     * transformation instructions to control the encoding.
  -     *
  -     * @param outputStream A valid OutputStream reference.
  -     */
  -    public void setOutputStream(OutputStream outputStream) {
  -        this.outputStream = outputStream;
  -    }
  -
  -    /**
  -     * Get the byte stream that was set with setOutputStream.
  -     *
  -     * @return The byte stream that was set with setOutputStream, or null
  -     * if setOutputStream or the ByteStream constructor was not called.
  -     */
  -    public OutputStream getOutputStream() {
  -        return outputStream;
  -    }
  -
  -    /**
  -     * Set the writer that is to receive the result.  Normally,
  -     * a stream should be used rather than a writer, so that
  -     * the transformer may use instructions contained in the
  -     * transformation instructions to control the encoding.  However,
  -     * there are times when it is useful to write to a writer,
  -     * such as when using a StringWriter.
  -     *
  -     * @param writer  A valid Writer reference.
  -     */
  -    public void setWriter(Writer writer) {
  -        this.writer = writer;
  -    }
  -
  -    /**
  -     * Get the character stream that was set with setWriter.
  -     *
  -     * @return The character stream that was set with setWriter, or null
  -     * if setWriter or the Writer constructor was not called.
  -     */
  -    public Writer getWriter() {
  -        return writer;
  -    }
  -
  -    /**
  -     * Set the systemID that may be used in association
  -     * with the byte or character stream, or, if neither is set, use
  -     * this value as a writeable URI (probably a file name).
  -     *
  -     * @param systemId The system identifier as a URI string.
  -     */
  -    public void setSystemId(String systemId) {
  -        this.systemId = systemId;
  -    }
  -
  -    /**
  -     * Set the system ID from a File reference.
  -     *
  -     * @param f Must a non-null File reference.
  -     */
  -    public void setSystemId(File f) {
  -        this.systemId = "file:///" + f.getAbsolutePath();
  -    }
  -
  -    /**
  -     * Get the system identifier that was set with setSystemId.
  -     *
  -     * @return The system identifier that was set with setSystemId, or null
  -     * if setSystemId was not called.
  -     */
  -    public String getSystemId() {
  -        return systemId;
  -    }
  -
  -    //////////////////////////////////////////////////////////////////////
  -    // Internal state.
  -    //////////////////////////////////////////////////////////////////////
  -
  -    /**
  -     * The systemID that may be used in association
  -     * with the byte or character stream, or, if neither is set, use
  -     * this value as a writeable URI (probably a file name).
  -     */
  -    private String systemId;
  -
  -    /**
  -     * The byte stream that is to be written to.
  -     */
  -    private OutputStream outputStream;
  -
  -    /**
  -     * The character stream that is to be written to.
  -     */
  -    private Writer writer;
  -}
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
  +package javax.xml.transform.stream;
  +
  +import javax.xml.transform.*;
  +
  +import java.lang.String;
  +
  +import java.io.OutputStream;
  +import java.io.Writer;
  +import java.io.File;
  +
  +
  +/**
  + * Acts as an holder for a transformation result,
  + * which may be XML, plain Text, HTML, or some other form of markup.
  + *
  + */
  +public class StreamResult implements Result {
  +
  +    /** If {@link javax.xml.transform.TransformerFactory#getFeature}
  +     * returns true when passed this value as an argument,
  +     * the Transformer supports Result output of this type.
  +     */
  +    public static final String FEATURE =
  +        "http://javax.xml.transform.stream.StreamResult/feature";
  +
  +    /**
  +     * Zero-argument default constructor.
  +     */
  +    public StreamResult() {}
  +
  +    /**
  +     * Construct a StreamResult from a byte stream.  Normally,
  +     * a stream should be used rather than a reader, so that
  +     * the transformer may use instructions contained in the
  +     * transformation instructions to control the encoding.
  +     *
  +     * @param outputStream A valid OutputStream reference.
  +     */
  +    public StreamResult(OutputStream outputStream) {
  +        setOutputStream(outputStream);
  +    }
  +
  +    /**
  +     * Construct a StreamResult from a character stream.  Normally,
  +     * a stream should be used rather than a reader, so that
  +     * the transformer may use instructions contained in the
  +     * transformation instructions to control the encoding.  However,
  +     * there are times when it is useful to write to a character
  +     * stream, such as when using a StringWriter.
  +     *
  +     * @param writer  A valid Writer reference.
  +     */
  +    public StreamResult(Writer writer) {
  +        setWriter(writer);
  +    }
  +
  +    /**
  +     * Construct a StreamResult from a URL.
  +     *
  +     * @param systemId Must be a String that conforms to the URI syntax.
  +     */
  +    public StreamResult(String systemId) {
  +        this.systemId = systemId;
  +    }
  +
  +    /**
  +     * Construct a StreamResult from a File.
  +     *
  +     * @param f Must a non-null File reference.
  +     */
  +    public StreamResult(File f) {
  +        setSystemId(f);
  +    }
  +
  +    /**
  +     * Set the ByteStream that is to be written to.  Normally,
  +     * a stream should be used rather than a reader, so that
  +     * the transformer may use instructions contained in the
  +     * transformation instructions to control the encoding.
  +     *
  +     * @param outputStream A valid OutputStream reference.
  +     */
  +    public void setOutputStream(OutputStream outputStream) {
  +        this.outputStream = outputStream;
  +    }
  +
  +    /**
  +     * Get the byte stream that was set with setOutputStream.
  +     *
  +     * @return The byte stream that was set with setOutputStream, or null
  +     * if setOutputStream or the ByteStream constructor was not called.
  +     */
  +    public OutputStream getOutputStream() {
  +        return outputStream;
  +    }
  +
  +    /**
  +     * Set the writer that is to receive the result.  Normally,
  +     * a stream should be used rather than a writer, so that
  +     * the transformer may use instructions contained in the
  +     * transformation instructions to control the encoding.  However,
  +     * there are times when it is useful to write to a writer,
  +     * such as when using a StringWriter.
  +     *
  +     * @param writer  A valid Writer reference.
  +     */
  +    public void setWriter(Writer writer) {
  +        this.writer = writer;
  +    }
  +
  +    /**
  +     * Get the character stream that was set with setWriter.
  +     *
  +     * @return The character stream that was set with setWriter, or null
  +     * if setWriter or the Writer constructor was not called.
  +     */
  +    public Writer getWriter() {
  +        return writer;
  +    }
  +
  +    /**
  +     * Set the systemID that may be used in association
  +     * with the byte or character stream, or, if neither is set, use
  +     * this value as a writeable URI (probably a file name).
  +     *
  +     * @param systemId The system identifier as a URI string.
  +     */
  +    public void setSystemId(String systemId) {
  +        this.systemId = systemId;
  +    }
  +
  +    /**
  +     * Set the system ID from a File reference.
  +     *
  +     * @param f Must a non-null File reference.
  +     */
  +    public void setSystemId(File f) {
  +        this.systemId = "file:///" + f.getAbsolutePath();
  +    }
  +
  +    /**
  +     * Get the system identifier that was set with setSystemId.
  +     *
  +     * @return The system identifier that was set with setSystemId, or null
  +     * if setSystemId was not called.
  +     */
  +    public String getSystemId() {
  +        return systemId;
  +    }
  +
  +    //////////////////////////////////////////////////////////////////////
  +    // Internal state.
  +    //////////////////////////////////////////////////////////////////////
  +
  +    /**
  +     * The systemID that may be used in association
  +     * with the byte or character stream, or, if neither is set, use
  +     * this value as a writeable URI (probably a file name).
  +     */
  +    private String systemId;
  +
  +    /**
  +     * The byte stream that is to be written to.
  +     */
  +    private OutputStream outputStream;
  +
  +    /**
  +     * The character stream that is to be written to.
  +     */
  +    private Writer writer;
  +}
  
  
  
  1.2       +297 -262  xml-commons/java/external/src/javax/xml/transform/stream/StreamSource.java
  
  Index: StreamSource.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/stream/StreamSource.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StreamSource.java	2001/05/22 01:01:09	1.1
  +++ StreamSource.java	2001/05/22 17:05:45	1.2
  @@ -1,262 +1,297 @@
  -/**
  - * $Id: StreamSource.java,v 1.1 2001/05/22 01:01:09 edwingo Exp $
  - *
  - * Copyright (c) 2000-2001 Sun Microsystems, Inc. All Rights Reserved.
  - *
  - * This software is the confidential and proprietary information of Sun
  - * Microsystems, Inc. ("Confidential Information").  You shall not
  - * disclose such Confidential Information and shall use it only in
  - * accordance with the terms of the license agreement you entered into
  - * with Sun.
  - *
  - * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  - * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  - * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  - * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  - * THIS SOFTWARE OR ITS DERIVATIVES.
  - */
  -package javax.xml.transform.stream;
  -
  -import javax.xml.transform.Source;
  -
  -import java.io.InputStream;
  -import java.io.Reader;
  -import java.io.File;
  -
  -
  -/**
  - * Acts as an holder for a transformation Source in the form
  - * of a stream of XML markup.
  - *
  - */
  -public class StreamSource implements Source {
  -
  -    /** If {@link javax.xml.transform.TransformerFactory#getFeature}
  -     * returns true when passed this value as an argument,
  -     * the Transformer supports Source input of this type.
  -     */
  -    public static final String FEATURE =
  -        "http://javax.xml.transform.stream.StreamSource/feature";
  -
  -    /**
  -     * Zero-argument default constructor. If this constructor
  -     * is used, and no other method is called, the transformer
  -     * will assume an empty input tree, with a default root node.
  -     */
  -    public StreamSource() {}
  -
  -    /**
  -     * Construct a StreamSource from a byte stream.  Normally,
  -     * a stream should be used rather than a reader, so
  -     * the XML parser can resolve character encoding specified
  -     * by the XML declaration.
  -     *
  -     * <p>If this constructor is used to process a stylesheet, normally
  -     * setSystemId should also be called, so that relative URI references
  -     * can be resolved.</p>
  -     *
  -     * @param inputStream A valid InputStream reference to an XML stream.
  -     */
  -    public StreamSource(InputStream inputStream) {
  -        setInputStream(inputStream);
  -    }
  -
  -    /**
  -     * Construct a StreamSource from a byte stream.  Normally,
  -     * a stream should be used rather than a reader, so that
  -     * the XML parser can resolve character encoding specified
  -     * by the XML declaration.
  -     *
  -     * <p>This constructor allows the systemID to be set in addition
  -     * to the input stream, which allows relative URIs
  -     * to be processed.</p>
  -     *
  -     * @param inputStream A valid InputStream reference to an XML stream.
  -     * @param systemId Must be a String that conforms to the URI syntax.
  -     */
  -    public StreamSource(InputStream inputStream, String systemId) {
  -        setInputStream(inputStream);
  -        setSystemId(systemId);
  -    }
  -
  -    /**
  -     * Construct a StreamSource from a character reader.  Normally,
  -     * a stream should be used rather than a reader, so that
  -     * the XML parser can resolve character encoding specified
  -     * by the XML declaration.  However, in many cases the encoding
  -     * of the input stream is already resolved, as in the case of
  -     * reading XML from a StringReader.
  -     *
  -     * @param reader A valid Reader reference to an XML character stream.
  -     */
  -    public StreamSource(Reader reader) {
  -        setReader(reader);
  -    }
  -
  -    /**
  -     * Construct a StreamSource from a character reader.  Normally,
  -     * a stream should be used rather than a reader, so that
  -     * the XML parser may resolve character encoding specified
  -     * by the XML declaration.  However, in many cases the encoding
  -     * of the input stream is already resolved, as in the case of
  -     * reading XML from a StringReader.
  -     *
  -     * @param reader A valid Reader reference to an XML character stream.
  -     * @param systemId Must be a String that conforms to the URI syntax.
  -     */
  -    public StreamSource(Reader reader, String systemId) {
  -        setReader(reader);
  -        setSystemId(systemId);
  -    }
  -
  -    /**
  -     * Construct a StreamSource from a URL.
  -     *
  -     * @param systemId Must be a String that conforms to the URI syntax.
  -     */
  -    public StreamSource(String systemId) {
  -        this.systemId = systemId;
  -    }
  -
  -    /**
  -     * Construct a StreamSource from a File.
  -     *
  -     * @param f Must a non-null File reference.
  -     */
  -    public StreamSource(File f) {
  -        this.systemId = "file:///" + f.getAbsolutePath();
  -    }
  -
  -    /**
  -     * Set the byte stream to be used as input.  Normally,
  -     * a stream should be used rather than a reader, so that
  -     * the XML parser can resolve character encoding specified
  -     * by the XML declaration.
  -     *
  -     * <p>If this Source object is used to process a stylesheet, normally
  -     * setSystemId should also be called, so that relative URL references
  -     * can be resolved.</p>
  -     *
  -     * @param inputStream A valid InputStream reference to an XML stream.
  -     */
  -    public void setInputStream(InputStream inputStream) {
  -        this.inputStream = inputStream;
  -    }
  -
  -    /**
  -     * Get the byte stream that was set with setByteStream.
  -     *
  -     * @return The byte stream that was set with setByteStream, or null
  -     * if setByteStream or the ByteStream constructor was not called.
  -     */
  -    public InputStream getInputStream() {
  -        return inputStream;
  -    }
  -
  -    /**
  -     * Set the input to be a character reader.  Normally,
  -     * a stream should be used rather than a reader, so that
  -     * the XML parser can resolve character encoding specified
  -     * by the XML declaration.  However, in many cases the encoding
  -     * of the input stream is already resolved, as in the case of
  -     * reading XML from a StringReader.
  -     *
  -     * @param reader A valid Reader reference to an XML CharacterStream.
  -     */
  -    public void setReader(Reader reader) {
  -        this.reader = reader;
  -    }
  -
  -    /**
  -     * Get the character stream that was set with setReader.
  -     *
  -     * @return The character stream that was set with setReader, or null
  -     * if setReader or the Reader constructor was not called.
  -     */
  -    public Reader getReader() {
  -        return reader;
  -    }
  -
  -    /**
  -     * Set the public identifier for this Source.
  -     *
  -     * <p>The public identifier is always optional: if the application
  -     * writer includes one, it will be provided as part of the
  -     * location information.</p>
  -     *
  -     * @param publicId The public identifier as a string.
  -     */
  -    public void setPublicId(String publicId) {
  -        this.publicId = publicId;
  -    }
  -
  -    /**
  -     * Get the public identifier that was set with setPublicId.
  -     *
  -     * @return The public identifier that was set with setPublicId, or null
  -     * if setPublicId was not called.
  -     */
  -    public String getPublicId() {
  -        return publicId;
  -    }
  -
  -    /**
  -     * Set the system identifier for this Source.
  -     *
  -     * <p>The system identifier is optional if there is a byte stream
  -     * or a character stream, but it is still useful to provide one,
  -     * since the application can use it to resolve relative URIs
  -     * and can include it in error messages and warnings (the parser
  -     * will attempt to open a connection to the URI only if
  -     * there is no byte stream or character stream specified).</p>
  -     *
  -     * @param systemId The system identifier as a URL string.
  -     */
  -    public void setSystemId(String systemId) {
  -        this.systemId = systemId;
  -    }
  -
  -    /**
  -     * Get the system identifier that was set with setSystemId.
  -     *
  -     * @return The system identifier that was set with setSystemId, or null
  -     * if setSystemId was not called.
  -     */
  -    public String getSystemId() {
  -        return systemId;
  -    }
  -
  -    /**
  -     * Set the system ID from a File reference.
  -     *
  -     * @param f Must a non-null File reference.
  -     */
  -    public void setSystemId(File f) {
  -        this.systemId = "file:///" + f.toString();
  -    }
  -
  -    //////////////////////////////////////////////////////////////////////
  -    // Internal state.
  -    //////////////////////////////////////////////////////////////////////
  -
  -    /**
  -     * The public identifier for this input source, or null.
  -     */
  -    private String publicId;
  -
  -    /**
  -     * The system identifier as a URL string, or null.
  -     */
  -    private String systemId;
  -
  -    /**
  -     * The byte stream for this Source, or null.
  -     */
  -    private InputStream inputStream;
  -
  -    /**
  -     * The character stream for this Source, or null.
  -     */
  -    private Reader reader;
  -}
  +/*
  + * The Apache Software License, Version 1.1
  + *
  + *
  + * Copyright (c) 2001 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 name "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.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
  +package javax.xml.transform.stream;
  +
  +import javax.xml.transform.Source;
  +
  +import java.io.InputStream;
  +import java.io.Reader;
  +import java.io.File;
  +
  +
  +/**
  + * Acts as an holder for a transformation Source in the form
  + * of a stream of XML markup.
  + *
  + */
  +public class StreamSource implements Source {
  +
  +    /** If {@link javax.xml.transform.TransformerFactory#getFeature}
  +     * returns true when passed this value as an argument,
  +     * the Transformer supports Source input of this type.
  +     */
  +    public static final String FEATURE =
  +        "http://javax.xml.transform.stream.StreamSource/feature";
  +
  +    /**
  +     * Zero-argument default constructor. If this constructor
  +     * is used, and no other method is called, the transformer
  +     * will assume an empty input tree, with a default root node.
  +     */
  +    public StreamSource() {}
  +
  +    /**
  +     * Construct a StreamSource from a byte stream.  Normally,
  +     * a stream should be used rather than a reader, so
  +     * the XML parser can resolve character encoding specified
  +     * by the XML declaration.
  +     *
  +     * <p>If this constructor is used to process a stylesheet, normally
  +     * setSystemId should also be called, so that relative URI references
  +     * can be resolved.</p>
  +     *
  +     * @param inputStream A valid InputStream reference to an XML stream.
  +     */
  +    public StreamSource(InputStream inputStream) {
  +        setInputStream(inputStream);
  +    }
  +
  +    /**
  +     * Construct a StreamSource from a byte stream.  Normally,
  +     * a stream should be used rather than a reader, so that
  +     * the XML parser can resolve character encoding specified
  +     * by the XML declaration.
  +     *
  +     * <p>This constructor allows the systemID to be set in addition
  +     * to the input stream, which allows relative URIs
  +     * to be processed.</p>
  +     *
  +     * @param inputStream A valid InputStream reference to an XML stream.
  +     * @param systemId Must be a String that conforms to the URI syntax.
  +     */
  +    public StreamSource(InputStream inputStream, String systemId) {
  +        setInputStream(inputStream);
  +        setSystemId(systemId);
  +    }
  +
  +    /**
  +     * Construct a StreamSource from a character reader.  Normally,
  +     * a stream should be used rather than a reader, so that
  +     * the XML parser can resolve character encoding specified
  +     * by the XML declaration.  However, in many cases the encoding
  +     * of the input stream is already resolved, as in the case of
  +     * reading XML from a StringReader.
  +     *
  +     * @param reader A valid Reader reference to an XML character stream.
  +     */
  +    public StreamSource(Reader reader) {
  +        setReader(reader);
  +    }
  +
  +    /**
  +     * Construct a StreamSource from a character reader.  Normally,
  +     * a stream should be used rather than a reader, so that
  +     * the XML parser may resolve character encoding specified
  +     * by the XML declaration.  However, in many cases the encoding
  +     * of the input stream is already resolved, as in the case of
  +     * reading XML from a StringReader.
  +     *
  +     * @param reader A valid Reader reference to an XML character stream.
  +     * @param systemId Must be a String that conforms to the URI syntax.
  +     */
  +    public StreamSource(Reader reader, String systemId) {
  +        setReader(reader);
  +        setSystemId(systemId);
  +    }
  +
  +    /**
  +     * Construct a StreamSource from a URL.
  +     *
  +     * @param systemId Must be a String that conforms to the URI syntax.
  +     */
  +    public StreamSource(String systemId) {
  +        this.systemId = systemId;
  +    }
  +
  +    /**
  +     * Construct a StreamSource from a File.
  +     *
  +     * @param f Must a non-null File reference.
  +     */
  +    public StreamSource(File f) {
  +        this.systemId = "file:///" + f.getAbsolutePath();
  +    }
  +
  +    /**
  +     * Set the byte stream to be used as input.  Normally,
  +     * a stream should be used rather than a reader, so that
  +     * the XML parser can resolve character encoding specified
  +     * by the XML declaration.
  +     *
  +     * <p>If this Source object is used to process a stylesheet, normally
  +     * setSystemId should also be called, so that relative URL references
  +     * can be resolved.</p>
  +     *
  +     * @param inputStream A valid InputStream reference to an XML stream.
  +     */
  +    public void setInputStream(InputStream inputStream) {
  +        this.inputStream = inputStream;
  +    }
  +
  +    /**
  +     * Get the byte stream that was set with setByteStream.
  +     *
  +     * @return The byte stream that was set with setByteStream, or null
  +     * if setByteStream or the ByteStream constructor was not called.
  +     */
  +    public InputStream getInputStream() {
  +        return inputStream;
  +    }
  +
  +    /**
  +     * Set the input to be a character reader.  Normally,
  +     * a stream should be used rather than a reader, so that
  +     * the XML parser can resolve character encoding specified
  +     * by the XML declaration.  However, in many cases the encoding
  +     * of the input stream is already resolved, as in the case of
  +     * reading XML from a StringReader.
  +     *
  +     * @param reader A valid Reader reference to an XML CharacterStream.
  +     */
  +    public void setReader(Reader reader) {
  +        this.reader = reader;
  +    }
  +
  +    /**
  +     * Get the character stream that was set with setReader.
  +     *
  +     * @return The character stream that was set with setReader, or null
  +     * if setReader or the Reader constructor was not called.
  +     */
  +    public Reader getReader() {
  +        return reader;
  +    }
  +
  +    /**
  +     * Set the public identifier for this Source.
  +     *
  +     * <p>The public identifier is always optional: if the application
  +     * writer includes one, it will be provided as part of the
  +     * location information.</p>
  +     *
  +     * @param publicId The public identifier as a string.
  +     */
  +    public void setPublicId(String publicId) {
  +        this.publicId = publicId;
  +    }
  +
  +    /**
  +     * Get the public identifier that was set with setPublicId.
  +     *
  +     * @return The public identifier that was set with setPublicId, or null
  +     * if setPublicId was not called.
  +     */
  +    public String getPublicId() {
  +        return publicId;
  +    }
  +
  +    /**
  +     * Set the system identifier for this Source.
  +     *
  +     * <p>The system identifier is optional if there is a byte stream
  +     * or a character stream, but it is still useful to provide one,
  +     * since the application can use it to resolve relative URIs
  +     * and can include it in error messages and warnings (the parser
  +     * will attempt to open a connection to the URI only if
  +     * there is no byte stream or character stream specified).</p>
  +     *
  +     * @param systemId The system identifier as a URL string.
  +     */
  +    public void setSystemId(String systemId) {
  +        this.systemId = systemId;
  +    }
  +
  +    /**
  +     * Get the system identifier that was set with setSystemId.
  +     *
  +     * @return The system identifier that was set with setSystemId, or null
  +     * if setSystemId was not called.
  +     */
  +    public String getSystemId() {
  +        return systemId;
  +    }
  +
  +    /**
  +     * Set the system ID from a File reference.
  +     *
  +     * @param f Must a non-null File reference.
  +     */
  +    public void setSystemId(File f) {
  +        this.systemId = "file:///" + f.toString();
  +    }
  +
  +    //////////////////////////////////////////////////////////////////////
  +    // Internal state.
  +    //////////////////////////////////////////////////////////////////////
  +
  +    /**
  +     * The public identifier for this input source, or null.
  +     */
  +    private String publicId;
  +
  +    /**
  +     * The system identifier as a URL string, or null.
  +     */
  +    private String systemId;
  +
  +    /**
  +     * The byte stream for this Source, or null.
  +     */
  +    private InputStream inputStream;
  +
  +    /**
  +     * The character stream for this Source, or null.
  +     */
  +    private Reader reader;
  +}
  
  
  

Mime
View raw message