Hi After I installed Java 1.4.1.01, my transformations stopped working. Just to test I created a simplest XML and XSL: sample.xml: <?xml version="1.0"?> <sample> <test>A sample text</test> </sample>
sample.xsl: <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html"/> <xsl:template match="/"> <html> <body>The text from the XML: <xsl:value-of select="/sample/test" /> </body> </html> </xsl:template> </xsl:stylesheet> When I use java 1.4.0 and execute: E:\temp>java org.apache.xalan.xslt.Process -IN sample.xml -XSL sample.xsl -OUT sample.html the sample.html file gets created. When I use java 1.4.1.01, in the result I get an exception: E:\temp>java org.apache.xalan.xslt.Process -IN sample.xml -XSL sample.xsl -OUT s ample.html SystemId Unknown; Line -1; Column -1; XSLT Error (javax.xml.transform.Transforme rConfigurationException): javax.xml.transform.TransformerException: javax.xml.tr ansform.TransformerException: Failed calling setMethod method The exception is caused by the element <xsl:output method="html" />. If I use the <xsl:import href=... element, I get similar exception, just with the message Failed calling setHref method. In both cases I am using the Xalan Java 2.2.D11 installed with the JDK (java org.apache.xalan.xslt.EnvironmentCheck). I wanted to use the latest Xalan 2.4.1 with the endorsed override mechanism. So I placed the xalan.jar, xercesImpl.jar, and xml-apis.jar files in my <java_home>\rte\lib\endorsed directory but teh EnvironmentCheck still tells me that I use Xalan Java 2.2.D11. On the other hand I don't think it is the Xalan version problem - in both cases I use the same version! Anybody else run into similar problem with JDK 1.4.1.01? Thanks Witold
