Hi All,I have a strange situation with XSLT transformations. I am using a Java label for XML-to-XML transformations for around 600 XML filesUnder Java 1.4 the transformations are good. But under Java 1.5 not all the files are completely transformed.................... TransformerFactory factory = TransformerFactory newInstance();Templates template = factory newTemplates(new StreamSource(new FileReader("abc xsl")));Transformer transformer = template newTransformer();............ for(int i=0; i < filenames length; i++){transformer transform( new javax xml transform stream. StreamSource( filenamesS),new javax xml transform stream. StreamResult("T-"+filenamesS));}.................... Let me explain it properly. The label reads each register from the given directory and transformation is performed on that file. Under 1.5 not all the files are completely transformed. Lots of data is missing from the transformed file. No errors or exceptions at allBut when I change the code to perform transformations on those specific files the transformation is complete and the prove file contains all the data. At first I thought it might be problem due to the different JAXP packages in 1.4 & 1.5 But the problem seems to be something else. Can somebody gratify help me with what exactly is going wrong in this scenario??Thanks-Naveen
Hi Naveen,Can you give a testcase including the xsl a xml file that can be transformed completely another xml that can not immediately after the previous one? You may use the and attach the testcase as a zip file. Please also let us know what specific version of 1.4 and 1.5 you're using.*Please remove/replace any business sensitive information from these files. Thanks,Joe
Forex Groups - Tips on Trading
Related article:
http://forums.java.net/jive/thread.jspa?messageID=241746&tstart=0#241746
comments | Add comment | Report as Spam
|