Where is the root node of my browser?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • littlelisper@hotmail.com

    Where is the root node of my browser?

    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.
  • John Hosking

    #2
    Re: Where is the root node of my browser?

    littlelisper@ho tmail.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/

    Comment

    • littlelisper@hotmail.com

      #3
      Re: Where is the root node of my browser?

      On Apr 21, 7:24 am, John Hosking <J...@DELETE.Ho sking.name.INVA LID>
      wrote:
      littlelis...@ho tmail.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.

      Comment

      • Rik Wasmus

        #4
        Re: Where is the root node of my browser?

        On Mon, 21 Apr 2008 06:57:06 +0200, <littlelisper@h otmail.comwrote :
        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

        Comment

        • Jeff

          #5
          Re: Where is the root node of my browser?

          littlelisper@ho tmail.com wrote:
          On Apr 21, 7:24 am, John Hosking <J...@DELETE.Ho sking.name.INVA LID>
          wrote:
          >littlelis...@h otmail.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

          Comment

          • Harlan Messinger

            #6
            Re: Where is the root node of my browser?

            littlelisper@ho tmail.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.

            Comment

            • proton

              #7
              Re: Where is the root node of my browser?

              On Apr 21, 1:29 pm, Harlan Messinger
              <hmessinger.rem ovet...@comcast .netwrote:
              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.

              Comment

              Working...