You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2003/02/03 22:33:58 UTC

DO NOT REPLY [Bug 16734] New: - Infinite loop when transform a large xml file

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=16734>.
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=16734

Infinite loop when transform a large xml file

           Summary: Infinite loop when transform a large xml file
           Product: XalanJ2
           Version: 2.4
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.transformer
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: zhuqb@yahoo.com.cn


When I use the xalan to transform a large xml file(120M) to a rdf file using an 
xsl file, the program doesn't halt and seems like there is an infinite loop. I 
can tell this point from the result file.

The routine I have called:

TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(new StreamSource(xslFile ));
transformer.transform(new StreamSource(webFile.getPath() ), new StreamResult
(new FileOutputStream(str))); 

The command line got the same result:
java org.apache.xalan.xslt.Process -in xmlSource
    -xsl stylesheet -out outputfile

The xml file and xsl file are both correct. When using xml transform tools 
under Windows, things go smoothly.

I need your help very much.

Thank you.