ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 4335] New: - Style task does not handle multiple files correctly
Date Mon, 22 Oct 2001 15:04:33 GMT
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: ant-dev@jakarta.apache.org
        ReportedBy: wielaard@tryllian.com


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.

Mime
View raw message