Reputation: 525
I have installed saxon and saxon-scripts on Centos 7 (using yum) in order to be able to perform some XSLT transformations on a remote server.
On my local machine (a Mac), doing:
saxon -xi -o:/path/to/transformed.xml /path/to/original.xml /path/to/transformation.xsl
works without a hitch. The same command on Centos gives me:
Cannot find CatalogManager.properties
I have looked at both Running XSLT from the Command Line and Using XML Catalogs from the Saxon Documentation but the explanations there are way above my pay grade.
Is it possible to ignore this catalog manager business and perform the transformation from the command line without it? How would one go about it?
Upvotes: 1
Views: 448
Reputation: 163312
I don't really know what saxon-scripts does, or why it's going wrong, but I suggest you bypass it and invoke Saxon directly: write
java -cp:(classpath) net.sf.saxon.Transform -xi -o:/path/to/transformed.xml
-s:/path/to/original.xml -xsl:/path/to/transformation.xsl
where (classpath) is the directory in which the saxon JAR file is installed.
Upvotes: 1