tmiller     01/10/12 12:07:39

  Modified:    java/src/org/apache/xalan/xsltc/trax
                        TransformerFactoryImpl.java
  Log:
  ncluded a more portable way to create an URI from a File
  
  Revision  Changes    Path
  1.24      +4 -3      
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.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- TransformerFactoryImpl.java       2001/10/12 12:33:15     1.23
  +++ TransformerFactoryImpl.java       2001/10/12 19:07:39     1.24
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: TransformerFactoryImpl.java,v 1.23 2001/10/12 12:33:15 morten 
Exp $
  + * @(#)$Id: TransformerFactoryImpl.java,v 1.24 2001/10/12 19:07:39 tmiller 
Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -431,8 +431,9 @@
                throw new TransformerConfigurationException(UNKNOWN_SOURCE_ERR);
            }
   
  -         if ((new File(systemId)).exists())
  -             systemId = "file:"+systemId;
  +         if ((new File(systemId)).exists()) {
  +             systemId = new File(systemId).toURL().toExternalForm(); 
  +         }
   
            // Try to create an InputStream from the SystemId if no input so far
            if (input == null) input = new InputSource(systemId);
  
  
  

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

Reply via email to