DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4335>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4335 Style task does not handle multiple files correctly Summary: Style task does not handle multiple files correctly Product: Ant Version: 1.4.1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Optional Tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hi, When using the style task as follows to precess multiple docbook files at once: <style basedir="." destdir="." includes="**/*.dbx" extension=".html" style="docbook/stylesheets/html/docbook.xsl" /> I get the following exception: javax.xml.transform.TransformerException: Unknown error in XPath When running the style task multiple times on the individual files everythings goes correctly. This is using Xalan-j_2_2_D11. I had to explicitly add a transformer = templates.newTransformer(); just before the line transformer.transform(src, res); in the transform(File infile, File outfile) method of TraXLiaison to get it working. It seems that you cannot reuse a Transformer after you have already called transform() on it.
