• How do I set a filesystem local stylesheet for xsl transformation?

    From Johann Klammer@21:1/5 to All on Mon Jan 16 16:57:37 2017
    (in linux with firefox)
    This snippet:

    <?xml version="1.0" standalone="no"?>
    <?xml-stylesheet type="text/xsl" href="res:///usr/share/pcb/pcb_ba.xsl"?> <!DOCTYPE pcb_ba SYSTEM "/usr/share/pcb/pcb_ba.dtd">

    It works ok if I just give href="pcb_ba.xsl"
    and the file is in the current directory.
    But if I put an absolute path there,
    I'll just get a blank screen and the
    debugger sez there's no stylesheet loaded.
    Same problem if I prefix with file:// or res:// as above.
    I can ls and cat the file, as user,
    so it's likely not a permissions problem.

    What am i doing wrong?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luuk@21:1/5 to Johann Klammer on Mon Jan 16 21:30:46 2017
    On 16-01-17 16:57, Johann Klammer wrote:
    (in linux with firefox)
    This snippet:

    <?xml version="1.0" standalone="no"?>
    <?xml-stylesheet type="text/xsl" href="res:///usr/share/pcb/pcb_ba.xsl"?> <!DOCTYPE pcb_ba SYSTEM "/usr/share/pcb/pcb_ba.dtd">

    It works ok if I just give href="pcb_ba.xsl"
    and the file is in the current directory.
    But if I put an absolute path there,
    I'll just get a blank screen and the
    debugger sez there's no stylesheet loaded.
    Same problem if I prefix with file:// or res:// as above.
    I can ls and cat the file, as user,
    so it's likely not a permissions problem.

    What am i doing wrong?



    It's proably this:
    Links to local pages do not work http://kb.mozillazine.org/Links_to_local_pages_do_not_work

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Johann Klammer@21:1/5 to Luuk on Tue Jan 17 09:25:56 2017
    On 01/16/2017 09:30 PM, Luuk wrote:

    It's proably this:
    Links to local pages do not work http://kb.mozillazine.org/Links_to_local_pages_do_not_work

    I've now added the three keys in about:config (with url file:/// it's all local...).
    Things did not improve.
    Also, I'm entirely not sure why I'd need to set those things for files I open from a file:/// url...

    Oh, they say something about security policies having moved... will look into that now...

    --
    The settings you change are not the /real/ settings

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Johann Klammer@21:1/5 to Johann Klammer on Thu Jan 19 16:59:34 2017
    On 01/17/2017 09:25 AM, Johann Klammer wrote:
    I've now added the three keys in about:config (with url file:/// it's all local...).
    Things did not improve.
    Also, I'm entirely not sure why I'd need to set those things for files I open from a file:/// url...

    Oh, they say something about security policies having moved... will look into that now...


    Have been browsing the debian bugzilla a bit, and it looks like it is this one: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=271963

    They say it's closed, tho'....
    ...2007

    pretty sure the one here is newer...
    (Build identifier: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.0)

    hmmm... mime types....

    maybe something with the mime types file rather than browser...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Flynn@21:1/5 to Johann Klammer on Fri Jan 20 00:21:39 2017
    On 01/16/2017 03:57 PM, Johann Klammer wrote:
    (in linux with firefox)
    This snippet:

    <?xml version="1.0" standalone="no"?>
    <?xml-stylesheet type="text/xsl" href="res:///usr/share/pcb/pcb_ba.xsl"?> <!DOCTYPE pcb_ba SYSTEM "/usr/share/pcb/pcb_ba.dtd">

    It works ok if I just give href="pcb_ba.xsl"
    and the file is in the current directory.
    But if I put an absolute path there,
    I'll just get a blank screen and the
    debugger sez there's no stylesheet loaded.
    Same problem if I prefix with file:// or res:// as above.
    I can ls and cat the file, as user,
    so it's likely not a permissions problem.

    What am i doing wrong?

    Browser XSLT is so badly broken that it is probably better to use
    Saxon-CE or Saxon-JS.

    ///Peter

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)