Subject: Re: [xsl] Saxon auto-recognition of sequence of XML and XSLT document possible ? From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Mon, 05 Feb 2007 11:17:03 +0100 |
echo %1| findstr /E /C:.xslt >nul
if ERRORLEVEL 1 goto XMLFIRST
goto XMLSECOND
Works with no one of my stylesheets. But once again, it is maybe
what the OP was looking for, we just don't know from its requirements.
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 Xml file is first argument echo saxon %1 %2 saxon %1 %2 goto END
REM The XML file is the second argument, switch them :XMLSECOND echo Xml file is second argument, switching arguments echo saxon %2 %1 saxon %2 %1 goto END
saxon somesource.xml somestylesheet.xslt saxon somestylesheet.xslt somesource.xml
does not solve (etc): saxon -it main somestylesheet.xslt
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Saxon auto-recognition of, Florent Georges | Thread | Re: [xsl] Saxon auto-recognition of, Abel Braaksma |
AW: [xsl] Altova XSLT parser / was:, Huditsch, Roman \(LN | Date | [xsl] = vs. eq / was: Re: [xsl] Get, Yves Forkl |
Month |