CommuterJoy » Logbook

« logbook home

Posted by mattc at May 1, 08 03:36 PM ... Comments (0)

"Cannot write an implicit result document if an explicit result document has been written to the same URI: file:/path/to/my/file.xml" at net.sf.saxon.Controller.checkImplicitResultTree

Odd error of the week. Ant (or Saxon) seems to run over everything in the basedir twice, and at the second pass creates the above error message. I'm using the following to run the transforms over an directory of xml documents,

<xslt basedir="${project.trunk}/xml/"
 destdir="${project.home}www/"
 extension=".xml"
 style="${project.home}/xsl/foo.xsl"
 classpath="${ant.lib}/saxon9.jar;${ant.lib}/ant-trax.jar"
 processor="trax"
 force="true"
 >
 <param name="foo" expression="hello world"/>
</xslt>

I fixed it by adding a include directive (xslt supports implict filesets) as a child of the xslt task.

<include name="**/*.xml"/>

Comments (0)

Post Your Comments

random bookmark
link summary month October 2009 (1)
September 2009 (14)
August 2009 (16)
July 2009 (21)
June 2009 (24)
May 2009 (16)
April 2009 (2)
March 2009 (22)
February 2009 (11)
January 2009 (11)
December 2008 (9)
November 2008 (16)
October 2008 (18)
September 2008 (11)
August 2008 (12)
July 2008 (20)
June 2008 (15)
May 2008 (27)
April 2008 (9)
March 2008 (10)
February 2008 (8)
January 2008 (8)
December 2007 (12)
November 2007 (10)
October 2007 (10)
September 2007 (6)
August 2007 (13)
July 2007 (8)
June 2007 (10)
May 2007 (12)
April 2007 (5)
March 2007 (12)
February 2007 (13)
January 2007 (22)
December 2006 (21)
November 2006 (28)
August 2006 (1)
category code (15)
food (4)
notes (4)
photo (18)
project (2)
quote (12)
sketch (13)
soup (10)
travel (2)