Re: [xslt] Executing xslt scripts
- From: Scott Bronson <bronson rinspin com>
- To: veillard redhat com, The Gnome XSLT library mailing-list <xslt gnome org>
- Subject: Re: [xslt] Executing xslt scripts
- Date: Thu, 26 Jan 2006 17:30:22 -0500
On Thu, 2006-01-26 at 11:00 -0500, Daniel Veillard wrote:
> On Thu, Jan 26, 2006 at 10:47:33AM -0500, Scott Bronson wrote:
> > #!/usr/bin/xsltproc
> > <xsl:stylesheet version="1.0"
> > ....
> > </xsl:stylesheet>
> that's no more XML so that's not XSLt anymore.
That file is perfectly valid XML with a shebang line at the top. Since
a shebang will never, ever appear in well-formed XML anyway, I don't see
what the issue is. It doesn't break the spec. It just allows xsltproc
to process another type of file.
> > - It makes filters much easier to specify in programs. Right now, to
> > specifyiing xslt filters in liferea is a drag. You need to type
> > "xsltproc ~/transform.xslt -" -- a 3 arguments. If tt.xslt were an
> > executable file, then you could specify it as you do any other filter,
> > with a standard file dialog. That's much easier!
> not that much easier, but certainly breaking the spec
Maybe I didn't explain very well... Liferea allows the user to select a
transform script using the standard file dialog. However, because
xsltproc can't handle scripts marked executable, Liferea must *also*
inlcude a way for the user to type in a command line.
For many (most?) Gnome users, selecting a script in a file dialog is
trivial, typing in a command line is unheard of. Easier? It's
> > - It would make my life nicer to not have to have to write shell script
> > to automate simple transforms.
> I don't know why 3 args forces to write a shell script.
It's not the number of arguments that forces me to write a shell script.
It's the fact that I can't launch an xslt script simply by specifying
the file. If xsltproc would ignore the shebang line, then everything
would just work.
I guess I don't understand your resistance, Daniel. As far as I can
see, the upside is that it makes it much easier for non-technical users
to run xslt transforms. And the downside is...? That xsltproc will
accept a type of file that it wouldn't accept before?
] [Thread Prev