I'm running on a Sun/Solaris platform. We're running Xalan-J 2.4 and JDK 1.4. Our Java program does the following:
- loads the XSL style sheet into a javax.xml.transform.Templates,
- loads the XML file into a javax.xml.transform.dom.DOMSource
- transforms the DOMSource into a javax.xml.transform.dom.DOMResult
using javax.xml.transform.Transformer
- serializes the DOMResult to an output file using org.apache.xml.serializer.Serializer
The core template we're using for the copy is the following:
<xsl:template name="CopyAll" match="*">
<xsl:copy>
<xsl:copy-of select="@*" />
<xsl:apply-templates />
</xsl:copy>
</xsl:template>Following is a breakdown on the performance: - loading the stylesheet : 1.7 seconds - loading XML file : 0.3 seconds - creating Transform instance from Transforms: <0.1 seconds - serializing to output file: 0.4 seconds - executing copy transform: 2.1 seconds
Characteristics of the input XML file: - LineCount: 9678 - ByteCount: 494668 - TotalElementCount: 8795
--
Edward L. Knoll Phone (FedEx) : (719)484-2717
e-mail (FedEx) : [EMAIL PROTECTED]
e-mail (personal) : [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
