From: Andrew S. <and...@ya...> - 2005-07-29 17:25:48
|
I am interested in using Saxon.NET to do XSLT2 transformations from within my Dotnet application. I downloaded version 0.1.8.3 and was transforming XML files in no time. But when I tried a larger XML file (126MB), Saxon.NET choked. It froze up for over an hour before I put it out of its misery. Below is the code I'm using to perform the transformation, as well as the XSL stylesheet being transformed. We will need to transform XML files upwards of 500MB so hopefully I am doing something wrong and the error is not with Saxon.NET. Thanks in advance for any suggestions, Andrew Dim xslStream As New javax.xml.transform.stream.StreamSource(New java.io.File("<path-to-xsl>")) Dim xmlStream As New javax.xml.transform.stream.StreamSource(New java.io.File("<path-to-xml>")) Dim out As New javax.xml.transform.stream.StreamResult(New java.io.File("<path-to-output-xml>")) Dim t As javax.xml.transform.TransformerFactory = net.sf.saxon.TransformerFactoryImpl.newInstance Dim transformer As javax.xml.transform.Transformer = t.newTransformer() transformer.transform(xmlStream, out) <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" /> <xsl:template match="/"> <xsl:copy-of select="." /> </xsl:template> </xsl:stylesheet> __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |