286N/A * reserved comment block 286N/A * DO NOT REMOVE OR ALTER! 286N/A * Copyright 2001-2004 The Apache Software Foundation. 286N/A * Licensed under the Apache License, Version 2.0 (the "License"); 286N/A * you may not use this file except in compliance with the License. 286N/A * You may obtain a copy of the License at 286N/A * Unless required by applicable law or agreed to in writing, software 286N/A * distributed under the License is distributed on an "AS IS" BASIS, 286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 286N/A * See the License for the specific language governing permissions and 286N/A * limitations under the License. 286N/A * @author Santiago Pericas-Geertsen 286N/A * Creates a SAX2 InputSource object from a TrAX Source object 286N/A // Try to get InputSource from SAXSource input 286N/A // Pass the SAX parser to the compiler 286N/A * According to JAXP 1.2 specification if a SAXSource 286N/A * is created using a SAX InputSource the Transformer or 286N/A * TransformerFactory creates a reader via the 286N/A * XMLReaderFactory if setXMLReader is not used 286N/A //Incase there is an exception thrown 286N/A (
"ParserConfigurationException" ,
pce);
286N/A // Try to get SAX InputSource from DOM Source. 286N/A // get sax InputSource from StAXSource 286N/A // Try to get InputStream or Reader from StreamSource 286N/A // Create InputSource from Reader or InputStream in Source 286N/A "TransformerFactory.newTemplates()");