From: littlelisper on
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.
Can anyone tell me where is the right place?
Many thanks for your help.

Maybe you need to know this: I am using WIN2K, Firefox and IE6.
From: John Hosking on
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.

Huh? Surely the answer is to copy the XML file from its read-only
location to some other directory where you also place the XSL file (with
any other necessary files). Yes?


--
John
Read about the UIP: http://improve-usenet.org/
From: littlelisper on
On Apr 21, 7:24 am, John Hosking <J...(a)DELETE.Hosking.name.INVALID>
wrote:
> littlelis...(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.
>
> Huh? Surely the answer is to copy the XML file from its read-only
> location to some other directory where you also place the XSL file (with
> any other necessary files). Yes?
>
> --
> John
> Read about the UIP:http://improve-usenet.org/

Well, no. I was just trying to make the story shorter, but the fact is
that I have thousands of XML files and I can't use your solution,
moving thousands of files. 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.
So, in short, I am not looking for this solution, but rather to have
the stylesheet in the right place.
From: Rik Wasmus on
On Mon, 21 Apr 2008 06:57:06 +0200, <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.
> Can anyone tell me where is the right place?
> Many thanks for your help.
>
> Maybe you need to know this: I am using WIN2K, Firefox and IE6.


If you open it from the filesystem itself, it cannot exist at all AFAIK.
If you open it using a webserver, simple putting it in the configured
document root will do.
--
Rik Wasmus
From: Jeff on
littlelisper(a)hotmail.com wrote:
> On Apr 21, 7:24 am, John Hosking <J...(a)DELETE.Hosking.name.INVALID>
> wrote:
>> littlelis...(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.
>> Huh? Surely the answer is to copy the XML file from its read-only
>> location to some other directory where you also place the XSL file (with
>> any other necessary files). Yes?
>>
>> --
>> John
>> Read about the UIP:http://improve-usenet.org/
>
> Well, no. I was just trying to make the story shorter, but the fact is
> that I have thousands of XML files and I can't use your solution,
> moving thousands of files. 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.
> So, in short, I am not looking for this solution, but rather to have
> the stylesheet in the right place.

Sounds to me like you need a web server. The slash refers to the
webroot, not the file system root and as you've noticed, there is no web
root. You can run either IIS or Apache, or even something else. You can
set up the server to point any directory as the web root.

Jeff