←back to thread

392 points _kush | 3 comments | | HN request time: 0.748s | source
1. elcapitan ◴[] No.44394480[source]
> how I can run it? open XML file > open blog.xml -a Safari

This didn't work for me on my browsers (FF/Chrome/Safari) on Mac, apparently XSLT only works there when accessed through HTTP:

    $ python3 -m http.server --directory .
    $ open http://localhost:8000/blog.xml

I remember long hours using XSLT to transform custom XML formats into some other representation that was used by WXWindows in the 2000s, maybe I should give it a shot again for Web :)
replies(1): >>44394767 #
2. notpushkin ◴[] No.44394767[source]
> --directory .

Huh, neat! Did’t know it supported that. (python3 -m http.server will default to current directory anyway though)

replies(1): >>44394957 #
3. susam ◴[] No.44394957[source]
Yes! I often use a command like this to test my statically generated website locally using a command like this:

  python3 -m http.server -d _site/
Example: https://github.com/susam/susam.net/blob/0.3.0/Makefile#L264-...