< prev index next >

test/javax/xml/jaxp/unittest/transform/ProcessXSLT.java

Print this page




  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 /*
  21  * $Id: Process.java,v 1.2.4.2 2005/09/15 18:21:57 jeffsuttor Exp $
  22  */
  23 
  24 // This file is a copied and modified version of
  25 // com/sun/org/apache/xalan/internal/xslt/Process.java
  26 // which has been modified to only use public exported APIs.
  27 // The only adherence is with
  28 // com.sun.org.apache.xml.internal.utils.DefaultErrorHandler
  29 // which we try to instantiate using reflection, as that class
  30 // can do a better job at reporting error location.
  31 // We however don't have a hard dependency on it. We will use
  32 // our own ErrorHandler if the default one is not accessible.
  33 //



  34 import java.io.FileOutputStream;
  35 import java.io.FileWriter;
  36 import java.io.PrintWriter;
  37 import java.io.StringReader;
  38 import java.util.Properties;
  39 
  40 import javax.xml.XMLConstants;
  41 import javax.xml.parsers.DocumentBuilder;
  42 import javax.xml.parsers.DocumentBuilderFactory;
  43 import javax.xml.parsers.ParserConfigurationException;
  44 import javax.xml.transform.OutputKeys;
  45 import javax.xml.transform.Source;
  46 import javax.xml.transform.Templates;
  47 import javax.xml.transform.Transformer;
  48 import javax.xml.transform.TransformerConfigurationException;
  49 import javax.xml.transform.TransformerException;
  50 import javax.xml.transform.TransformerFactory;
  51 import javax.xml.transform.TransformerFactoryConfigurationError;
  52 import javax.xml.transform.URIResolver;
  53 import javax.xml.transform.dom.DOMResult;




  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 /*
  21  * $Id: Process.java,v 1.2.4.2 2005/09/15 18:21:57 jeffsuttor Exp $
  22  */
  23 
  24 // This file is a copied and modified version of
  25 // com/sun/org/apache/xalan/internal/xslt/Process.java
  26 // which has been modified to only use public exported APIs.
  27 // The only adherence is with
  28 // com.sun.org.apache.xml.internal.utils.DefaultErrorHandler
  29 // which we try to instantiate using reflection, as that class
  30 // can do a better job at reporting error location.
  31 // We however don't have a hard dependency on it. We will use
  32 // our own ErrorHandler if the default one is not accessible.
  33 //
  34 
  35 package transform;
  36 
  37 import java.io.FileOutputStream;
  38 import java.io.FileWriter;
  39 import java.io.PrintWriter;
  40 import java.io.StringReader;
  41 import java.util.Properties;
  42 
  43 import javax.xml.XMLConstants;
  44 import javax.xml.parsers.DocumentBuilder;
  45 import javax.xml.parsers.DocumentBuilderFactory;
  46 import javax.xml.parsers.ParserConfigurationException;
  47 import javax.xml.transform.OutputKeys;
  48 import javax.xml.transform.Source;
  49 import javax.xml.transform.Templates;
  50 import javax.xml.transform.Transformer;
  51 import javax.xml.transform.TransformerConfigurationException;
  52 import javax.xml.transform.TransformerException;
  53 import javax.xml.transform.TransformerFactory;
  54 import javax.xml.transform.TransformerFactoryConfigurationError;
  55 import javax.xml.transform.URIResolver;
  56 import javax.xml.transform.dom.DOMResult;


< prev index next >