[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Invoking XSLT 2.0

Subject: Re: Invoking XSLT 2.0
From: "Rashmi Rubdi" <rashmi.sub@xxxxxxxxx>
Date: Wed, 25 Apr 2007 18:44:26 -0400
Re:  Invoking XSLT 2.0
On 4/25/07, Colin Adams <colinpauladams@xxxxxxxxxxx> wrote:

>From: "Rashmi Rubdi" <rashmi.sub@xxxxxxxxx>


>
>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
standalone.xsl.

I guess invoking a standalone stylesheet on a named template within it
makes sense because a styesheet can have multiple templates.

Also the output file could be omitted, in which case the output is
printed on the console.


With Gestalt/gexslt, it is the --initial-template option.


(I don't know Altova).


-Regards Rashmi

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.