redirect:write output path

L Duperval <[email protected]> Fri, 7 May 2010 19:22:38 +0000 (UTC)
Newsgroups gmane.text.xml.xalan.java.user
Message-ID <[email protected]>
Hi,

I am using the redirect:write extension and I am trying to figure out how to
specify the absolute path for the transformation output.

In my Java code I do this:


transformer = tFactory.newTransformer(new StreamSource(
						MeteoMediaForecastTransform.class.getResourceAsStream("/xsl/my.xsl")));
				transformer.setParameter("outputDir",outputDirectory);
transformer.transform(new StreamSource(
						inputFile), new StreamResult(
						System.out));

where outputDirectory is an absolute path. Yet, when I execute the
transformation, the output is saved relative to the location of the input file.

Any idea what I am doing to cause this?

I am using xalan 2.7.1 with JDK 1.6.0.20.

Thanks,

L