|
|
#1 |
|
Prospect
Join Date: Dec 2002
Location: Montréal
Posts: 44
|
After reading the very interesting post Pipe to Safari from stdin and the comments about how Firefox would not parse as html because of the txt mime type I decided to pull a quick script to address the issue...
PHP Code:
$ sudo chmod +x pipe2browser You're set to go... Usage goes like so (example with Xalan): $ Xalan file.xml file.xslt | ./pipe2browser [.ext] [/Path/to/Browser.app]; The default extension is .html and browser is Safari. This should do in most cases. The script is probably not perfect but it's a quick fix. Feel free to edit ![]() BTW, I have made one a bit more specific to Xalan, if anyone is interested let me know and I'll post it. Enjoy
Last edited by xSmurf; 12-02-2005 at 04:23 PM. |
|
|
|
![]() |
|
|