Subject: Re: [xsl] Saxon auto-recognition of sequence of XML and XSLT document possible ? From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Fri, 02 Feb 2007 14:59:26 +0100 |
I want to create a DOS batch file onto I can drag TWO documents simultaneously:
ONE XML source and ONE XSLT sheet.
The key command in this batch file will be similar to
java -jar saxon8.jar "%1" "%2" .....
It now occurs from time to time that the XSLT stylesheet will be the first parameter %1 and the second %2 represents the XML doc.
Is there no Auto-recognition from Saxon to detect which of the two documents is the XML and which the XSLT stylesheet and hence allow also
java -jar dir/saxon8.jar [options] stylesheet source-document [ params...]
Maybe I have to pass another option?
Cheers, -- Abel Braaksma http://www.nuntia.nl
REM The pipeline and %1 may not have a space between! echo %1| findstr /E /C:.xslt >nul
if ERRORLEVEL 1 goto XMLFIRST goto XMLSECOND
REM The XML file is the first argument, this is normal :XMLFIRST echo XMLFIRST echo saxon %1 %2 saxon %1 %2 goto END
REM The XML file is the second argument, switch them :XMLSECOND echo XMLSECOND (switch back) echo saxon %2 %1 saxon %2 %1 goto END
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Saxon auto-recognition of, George Cristian Bina | Thread | Re: [xsl] Saxon auto-recognition of, Mukul Gandhi |
Re: [xsl] Saxon auto-recognition of, George Cristian Bina | Date | RE: [xsl] Problem with Positional G, Michael Kay |
Month |