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

Re: Saxon auto-recognition of sequence of XML and XSLT

Subject: Re: Saxon auto-recognition of sequence of XML and XSLT document possible ?
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Fri, 02 Feb 2007 20:33:27 +0100
Re:  Saxon auto-recognition of sequence of XML and XSLT
Florent Georges wrote:
Is this possible with Saxon..?

If IIRC, the goal is to can use drag n drop in Windows to drop both a stylesheet and an XML document at the same time on a shortcut that call Saxon. A very simple "GUI" for Saxon. But the OP can't guarantee the order of the parameters.

So he can write an alternate front-end to Saxon (an other Java class
with a main() method) that uses Saxon and allows any order of its file
parameters (detecting which one is the stylesheet by looking into the
documents).

Why so difficult? If on Windows, you can use old MSDOS batch, and/or JScript. The following three lines do what he wants. It is equally easy in Java, of course, but this is easier to maintain. And when you have a java class, you still need a batch file to call it...


echo %1| findstr /E /C:.xslt >nul

if ERRORLEVEL 1 goto XMLFIRST
goto XMLSECOND

-- Abel

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-2013 All Rights Reserved.