0

I am trying to implement a simple xslt transformation using ant build. The processor used for transformation is saxon9.jar.

Here is the build file made by this model:

 <project name="TranformXml" default="TransformAll">
 <target name="xslt2">
 <!-- Transform one file into an HTML file -->
    <xslt in="t1.xml" out="t2.xml" style="t1-t2.xsl" force="true">
    <classpath location="C:\\Program Files (x86)\\Exchanger XML Editor 3.3\\lib\\saxon9.jar" />
    </xslt>
 </target>
    
 <target name="TransformAll" depends="xslt2" />
 </project>

The command I am using for starting the script is:

ant build.xml

Of course the working directory is set to where files reside.

This is the repeatedly printed on the command prompt:

C:\Users\rmrd001\Desktop\XSLTXpath\Examples\2015.10.22>set build=build.xml

C:\Users\rmrd001\Desktop\XSLTXpath\Examples\2015.10.22>ant build.xml

C:\Users\rmrd001\Desktop\XSLTXpath\Examples\2015.10.22>я╗┐ ^C'я╗┐' is not recognized as an internal or external command, operable program or batch file.

when I run the script.

Radoslaw Krasimirow
  • 1,833
  • 2
  • 18
  • 28
  • This appears to be a code page issue in cmd.exe. See [What encoding/code page is cmd.exe using](http://stackoverflow.com/q/1259084/1078068). – Chad Nouis Oct 22 '15 at 14:00
  • What happens if you enter `chcp` in the Command Prompt? – Chad Nouis Oct 22 '15 at 14:00
  • Also, what happens if you enter `where ant` in the Command Prompt? – Chad Nouis Oct 22 '15 at 14:01
  • Why did you double the backslashes? That's a convention for languages that use "\" as an escape character, which XML doesn't. In any case, "/" usually works better these days. Having said that, I'm surprised by the symptoms. – Michael Kay Oct 22 '15 at 15:00
  • The problem was in my batch file in the same directory with name `build.bat` Sorry I wasted your time. – Radoslaw Krasimirow Oct 24 '15 at 13:32

0 Answers0