<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Todd Huss &#187; XML</title>
	<atom:link href="http://gabrito.com/post/category/technical/xml/feed" rel="self" type="application/rss+xml" />
	<link>http://gabrito.com</link>
	<description>Anecdotes on Technology Leadership, Ruby, Java, Scala, Cloud Computing, Open-Source, SEO, and Design</description>
	<lastBuildDate>Thu, 08 Dec 2011 00:21:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Xalan XSL transformations in the 1.4 JDK can be VERY slow</title>
		<link>http://gabrito.com/post/xalan-xsl-transformations-in-the-14-jdk-can-be-very-slow</link>
		<comments>http://gabrito.com/post/xalan-xsl-transformations-in-the-14-jdk-can-be-very-slow#comments</comments>
		<pubDate>Sat, 14 Oct 2006 00:30:13 +0000</pubDate>
		<dc:creator>Todd Huss</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Software Engineering]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://gabrito.com/post/xalan-xsl-transformations-in-the-14-jdk-can-be-very-slow</guid>
		<description><![CDATA[At work as part of our XML data feed product we end up doing XSLT transformations on XML files starting a a few MB all the way up to several hundred MB. Using the 1.4.2 JDK it took over 4 &#8230; <a href="http://gabrito.com/post/xalan-xsl-transformations-in-the-14-jdk-can-be-very-slow">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>At work as part of our XML data feed product we end up doing XSLT transformations on XML files starting a a few MB all the way up to several hundred MB. Using the 1.4.2 JDK it took over <strong>4 days</strong> to do the XSL transformation on the largest file so over lunch one day we started brainstorming our troubleshooting approach. When we tried it on the 1.5 JDK the same transformation took a <strong>couple of minutes</strong> as opposed to 4 days. Talk about an improvement!<br />
<span id="more-157"></span><br />
However, I was thrown astray of the solution because we include a specific version of Xalan in the classpath so I assumed it was the JDK version that was the differentiator but when I ran it by <a href="http://jroller.com/page/nsikha">Naresh</a> he reminded me that Xalan is included in the JDK. </p>
<p><!--adsense--></p>
<p>If you&#8217;re using JAXP on a 1.5 JDK (where Xalan is now under com.sun.org.apache) or a 1.4 JDK (where Xalan is under org.apache) then the only way to override the version of Xalan is to put it before rt.jar in the bootclasspath. Sure enough, there appears to be some issue with Xalan in the 1.4.2 JDK where large XSL transformations are extremely slow!</p>
<p>Here&#8217;s what it looks like to get Java to use your own version of Xalan:</p>
<p>java -Xbootclasspath:xalan-2.X.X.jar:$JAVA_HOME/jre/lib/rt.jar &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://gabrito.com/post/xalan-xsl-transformations-in-the-14-jdk-can-be-very-slow/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

