tmiller     02/05/08 06:28:09

  Modified:    java/src/org/apache/xalan/xsltc/trax
                        TransformerFactoryImpl.java
  Log:
  fixes a set of trax.dom conf tests
  
  Revision  Changes    Path
  1.37      +4 -2      
xml-xalan/java/src/org/apache/xalan/xsltc/trax/TransformerFactoryImpl.java
  
  Index: TransformerFactoryImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/trax/TransformerFactoryImpl.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- TransformerFactoryImpl.java       24 Apr 2002 20:50:14 -0000      1.36
  +++ TransformerFactoryImpl.java       8 May 2002 13:28:09 -0000       1.37
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: TransformerFactoryImpl.java,v 1.36 2002/04/24 20:50:14 
santiagopg Exp $
  + * @(#)$Id: TransformerFactoryImpl.java,v 1.37 2002/05/08 13:28:09 tmiller 
Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -435,6 +435,9 @@
                xsltc.setXMLReader(dom2sax);  
                // try to get SAX InputSource from DOM Source.
                input = SAXSource.sourceToInputSource(source);
  +             if (input == null){
  +                     input = new InputSource(domsrc.getSystemId());
  +             }
            }
            // Try to get InputStream or Reader from StreamSource
            else if (source instanceof StreamSource) {
  @@ -480,7 +483,6 @@
        */
       public Templates newTemplates(Source source)
        throws TransformerConfigurationException {
  -
        // Create and initialize a stylesheet compiler
        final XSLTC xsltc = new XSLTC();
        if (_debug) xsltc.setDebug(true);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to