Re: [xml] A few Windows specific issues



On Fri, Oct 26, 2001 at 12:09:55PM +0200, Igor  Zlatkovic wrote:
Okay, I have tested a bit. 

  thanks for the thorough (spelling ?) review !

[...]
backslash as a valid path element delimiter. I think there is no bug to
fix.

 I like this kind of solutions :-)

Now let us observe what else came out. The following does not work from
the command line:

  file://c|/dir/file.xml
  file://localhost/c|/dir/file.xml
  file://localhost/c:/dir/file.xml

  hum ... how many software expect those to work ? Is that a "standard"
convention ?

The third of the above does not work at all. The first two report an
error, but fire up the program registered to handle files of type XML,
which then finds the file. This means, assuming the 'file.xml' exists,
you see this:

  C:\> xmllint file://c|/dir/file.xml
  warning: failed to load external 
           entity "file://c|/dir/file.xml"

and while you read it, Internet Explorer pops up and loads the specified
XML file. Since xmlint does not use Win32 Shell API, it must be fopen().
Xmllint calls fopen(), and fopen() launches Internet Explorer on the
specified file, reporting an error back to xmllint.

  ??? fopen() lauch IE ???

One day, when I get kids, someone shall ask:
  "Igorson, what would you like to be when you grow up?"
And my offspring shall answer: 
  "Ehmm... I would like to work for a company which neither uses nor
supports Microsoft Windows in any way."

Okay, now. Daniel, Passing native paths on the command line works. This
means, you don't need those conversion functions anymore, or do you plan
to allow Win32 native path specifications in XML files?

  I don't intent to change the behaviour of URI-Reference computation,
definitely no !  It would make them non-conformant to the RFC 2396.

  Status quo except for the file://c|/ notation which may have to be
supported if it's the satndard way to do this.

    thanks a lot !

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]