tmiller     01/10/12 12:01:24

  Modified:    java/src/org/apache/xalan/xsltc/dom LoadDocument.java
  Log:
  included a more portable way to create an URI from a File
  
  Revision  Changes    Path
  1.7       +4 -3      
xml-xalan/java/src/org/apache/xalan/xsltc/dom/LoadDocument.java
  
  Index: LoadDocument.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/dom/LoadDocument.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- LoadDocument.java 2001/08/27 09:07:21     1.6
  +++ LoadDocument.java 2001/10/12 19:01:24     1.7
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: LoadDocument.java,v 1.6 2001/08/27 09:07:21 morten Exp $
  + * @(#)$Id: LoadDocument.java,v 1.7 2001/10/12 19:01:24 tmiller Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -111,8 +111,9 @@
   
        // Check if this is a local file name
        final File file = new File(uri);
  -     if (file.exists())
  -         uri = "file:" + file.getAbsolutePath();
  +     if (file.exists()) {
  +         uri = file.toURL().toExternalForm();
  +     }
        
        // Check if this DOM has already been added to the multiplexer
        int mask = multiplexer.getDocumentMask(uri);
  
  
  

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

Reply via email to