Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Apr 2009
    Location
    Boston, Mass, USA
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question remote vs local xml on browser

    I have a 30K xml file and its DTD, successfully passed a validating parser. I have written a xsl file which transforms it to HTML. I am running mozilla 3.0 on Linux. When I point the browser to the xml file located on my local hard drive, I get the HTML page I expect. When I put the same files on my ISP's web server, and access the file, I get the raw xml file, without transformation. How do I get the XSL to kick in on the server? I have tried pointing to "file://.......xml" instead of "http://........xml", but to no avail.

    Any comments, ideas, and/or suggestions would be greatly appreciated.

    bctrail

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by bctrail View Post
    I have a 30K xml file and its DTD, successfully passed a validating parser. I have written a xsl file which transforms it to HTML. I am running mozilla 3.0 on Linux. When I point the browser to the xml file located on my local hard drive, I get the HTML page I expect. When I put the same files on my ISP's web server, and access the file, I get the raw xml file, without transformation. How do I get the XSL to kick in on the server? I have tried pointing to "file://.......xml" instead of "http://........xml", but to no avail.

    Any comments, ideas, and/or suggestions would be greatly appreciated.

    bctrail
    Code:
    <?xml-stylesheet type="text/xsl" href="yourpath"?>
    yourpath must be the relative path between your xml file and xslt file.

    I hope this help you.

    best regards

  • #3
    New to the CF scene
    Join Date
    Apr 2009
    Location
    Boston, Mass, USA
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the reply. I have checked that out, and it seems to be in order. The relative path set up is the same, both locally and remotely, since both files are "together" in both locations. I'm wondering if I need to do something different when I make the browser request.

    BCT

  • #4
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by bctrail View Post
    Thanks for the reply. I have checked that out, and it seems to be in order. The relative path set up is the same, both locally and remotely, since both files are "together" in both locations. I'm wondering if I need to do something different when I make the browser request.

    BCT
    can you post a link here?

    best regards

  • #5
    New to the CF scene
    Join Date
    Apr 2009
    Location
    Boston, Mass, USA
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you again.

    Well, this gets interestinger and interestinger. I just went to my handy public library and tried using their windows machines. It seems if I use Firefox on windows, I get the results described previously. HOWEVER, if I use Internet Explorer, everything is peachy keen, and the XSL executes as expected. So I guess I'll have to dig in to FireFox a bit.

    EDIT:

    I would rather not post the link here, but I would be glad to send it to you by private message. Want me to try that?

    EDIT #2:

    After browsing the FireFox/Moilla web site, it appears that several bugs have been reported about similar sorts of problems. For the moment, the workaround would seem to be to use IE when accessing remotely.


    BCT
    Last edited by bctrail; 04-06-2009 at 09:24 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •