|
Prev: Q: Correct path for the @import rule and a url
Next: Using JavaScript to Customize Mouse Pointer Graphic??
From: Harlan Messinger on 21 Apr 2008 07:29 littlelisper(a)hotmail.com wrote: > I want to open an XML file with my browser. The file contains the > following line: > > <?xml-stylesheet type="text/xsl" href="/new.xsl"?> > > which points to the root node to look for the stylesheet. > Since the XML file is in only-readable media, I cannot modify it, so > the solution is to copy the stylesheet to the correct directory. The > problem is that I can't find where this should be. I have tried all > over the place: in the desktop, in the root C: drive, in the same > directory as the XML file, in the directory where the browser file is > located, ... but it doesn't find the stylesheet. If the XML file is on read-only media, how did you copy the XSL file to the same directory? > Can anyone tell me where is the right place? The href "/new.xsl" refers to the root directory of the same drive that the XML file is on. Not the root directory of the C: drive (since the XML file, on read-only media, is obviously not on the C: drive). Not the same directory as the XML file, if the XML file isn't in the root directory.
From: proton on 21 Apr 2008 09:22 On Apr 21, 1:29 pm, Harlan Messinger <hmessinger.removet...(a)comcast.net> wrote: > If the XML file is on read-only media, how did you copy the XSL file to > the same directory? See my second post, where I say: "In fact, that is what I did to test the stylesheet in the same directory as the XML file: I copied one single file to the writable media and put the stylesheet there as well. " > > > Can anyone tell me where is the right place? > > The href "/new.xsl" refers to the root directory of the same drive that > the XML file is on. Not the root directory of the C: drive (since the > XML file, on read-only media, is obviously not on the C: drive). Not the > same directory as the XML file, if the XML file isn't in the root directory. No, I tried this and it doesn't work. To make sure that no clever cookie comes back asking "How could you put the stylesheet in the root of the non-writable media?", this is what I did: I copied one of the XML files in C: together with the stylesheet and tried to open the XML. It did not work.
First
|
Prev
|
Pages: 1 2 Prev: Q: Correct path for the @import rule and a url Next: Using JavaScript to Customize Mouse Pointer Graphic?? |