[Top] [All Lists]  Re: [xsl] Invoking XSLT 2.0  2007-04-25
15:44:45 On 4/25/07, Colin Adams
<colinpauladams(_at_)hotmail(_dot_)com> wrote:  >From: "Rashmi
Rubdi" <rashmi(_dot_)sub(_at_)gmail(_dot_)com>  >I don't think
there's an option to call an XSL stylesheet without an >input
XML,  It is a requirement of XSLT 2.0 that the initial template
can be specified by QName, rather than chosen by a match on the
initial context node, which is not required), and therefore no
input XML document is required.  With the Saxon command line,
this is the -it option.  I just noticed this thread and thought
I'll try the above mentioned option since I was interested in
knowing if it's possible to have a standalone XSLT.  It worked
as follows:  java -jar c:\dev\saxonb8-9-0-3j\saxon8.jar -it
something standalone.xsl > output1.xml  In the above case
"something" is the name of the named template inside  I guess
invoking a standalone stylesheet on a named template within it
makes sense because a styesheet can have multiple templates