You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Lo...@lotus.com on 2001/01/24 20:07:55 UTC

RE: Path bug in Xalan.. comment about URLs

Hmm - one comment on all these setSystemId() notes: if your application is
setting the systemId, are you sure you're setting it to either the master
(i.e. including stylesheet, not the included stylesheet) stylesheet or to
the directory it lives in?  I thought I saw somewhere a call like:

  xslSource.setSystemId("file:///path1/path2"); // bad

which actually sets the systemId to the 'path2' file in the '/path1'
directory, not to the '/path1/path2/' path.  I.e. it should have been:

  xslSource.setSystemId("file:///path1/path2/"); // good
  xslSource.setSystemId("file:///path1/path2/thisFile"); // good

Does that make any sense?  Note this is mainly if your code is setting the
systemId of a stylesheet - we still need to investigate that if *you* don't
set it, that both Xalan-J 1.x and Xalan-J 2.x *default* it properly, of
course! (Sorry in advance if we aren't doing it correctly).

Also, you might want to look at http://www.ietf.org/rfc/rfc1738.txt which
defines the format of file: URLs.  I'm not sure it's clear exactly what
file:/path and file:path really define - the spec seems clear it should be
file://hostname/path or just file:///path

- Shane (still helping to look into it)