-
XSLT Transformation Issue
Hi All,
I have a strange situation with XSLT transformations. I am using a Java code for XML-to-XML transformations for around 600 XML files
Under 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[i]),
new javax.xml.transform.stream.StreamResult("T-"+filenamesS[i]));
}
...........
.........
Let me explain it properly. The code reads each file 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 all*
But when I change the code to perform transformations on those specific files the transformation is complete and the result 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 please help me with what exactly is going wrong in this scenario??
Thanks
-Naveen
Similar Threads
-
By Greg Rothlander in forum ASP.NET
Replies: 0
Last Post: 05-10-2002, 05:36 PM
-
By Patrick Long in forum XML
Replies: 1
Last Post: 03-01-2002, 02:47 PM
-
By Thomas Eyde in forum .NET
Replies: 290
Last Post: 12-22-2001, 02:13 PM
-
By Saurabh in forum dotnet.announcements
Replies: 0
Last Post: 09-19-2001, 06:48 AM
-
Replies: 0
Last Post: 06-21-2001, 05:33 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks