<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to use Saxon with Ant</title>
	<atom:link href="http://vocaro.com/trevor/blog/2007/01/08/how-to-use-saxon-with-ant/feed/" rel="self" type="application/rss+xml" />
	<link>http://vocaro.com/trevor/blog/2007/01/08/how-to-use-saxon-with-ant/</link>
	<description>Random thoughts, humor, and helpful tips</description>
	<lastBuildDate>Mon, 26 Jul 2010 12:26:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Morten Slott Hansen</title>
		<link>http://vocaro.com/trevor/blog/2007/01/08/how-to-use-saxon-with-ant/comment-page-1/#comment-24057</link>
		<dc:creator>Morten Slott Hansen</dc:creator>
		<pubDate>Mon, 26 Jul 2010 12:26:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.vocaro.com/trevor/blog/2007/01/08/how-to-use-saxon-with-ant/#comment-24057</guid>
		<description>This is just awesome - the final macrodef just made my entire day. Have been trying to get ant 1.7 working with the xslt task but it just keeps failing...

Will try any 1.8 l8er - but this is just awesome!</description>
		<content:encoded><![CDATA[<p>This is just awesome &#8211; the final macrodef just made my entire day. Have been trying to get ant 1.7 working with the xslt task but it just keeps failing&#8230;</p>
<p>Will try any 1.8 l8er &#8211; but this is just awesome!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff I</title>
		<link>http://vocaro.com/trevor/blog/2007/01/08/how-to-use-saxon-with-ant/comment-page-1/#comment-12626</link>
		<dc:creator>Jeff I</dc:creator>
		<pubDate>Sat, 28 Feb 2009 18:07:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.vocaro.com/trevor/blog/2007/01/08/how-to-use-saxon-with-ant/#comment-12626</guid>
		<description>Here&#039;s another solution that does not require installing saxon jars into ant or the classpath.  While directly dependent on the Saxon API, it is encapsulated in a macro, so the implementation can be changed without having to touch every reference in your build.xml.

&lt;pre&gt;
&lt;macrodef name=&quot;xslt-saxon&quot;&gt;
  &lt;attribute name=&quot;in&quot;/&gt;
  &lt;attribute name=&quot;out&quot;/&gt;
  &lt;attribute name=&quot;style&quot;/&gt;
  &lt;sequential&gt;
    &lt;echo level=&quot;info&quot;&gt;XSLT Generating @{out}&lt;/echo&gt;
    &lt;java classname=&quot;net.sf.saxon.Transform&quot;
          classpath=&quot;lib/saxon-8.7.jar&quot;
          logError=&quot;true&quot;
          output=&quot;@{out}&quot;
          fork=&quot;true&quot;&gt;
      &lt;arg value=&quot;@{in}&quot;/&gt;
      &lt;arg value=&quot;@{style}&quot;/&gt;
    &lt;/java&gt;
  &lt;/sequential&gt;
&lt;/macrodef&gt;
&lt;/pre&gt;
Then invoke as:

&lt;pre&gt;
   &lt;xslt-saxon in=&quot;source.xml&quot; style=&quot;style.xsl&quot; out=&quot;output.xml&quot;/&gt;
&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>Here&#8217;s another solution that does not require installing saxon jars into ant or the classpath.  While directly dependent on the Saxon API, it is encapsulated in a macro, so the implementation can be changed without having to touch every reference in your build.xml.</p>
<pre>
&lt;macrodef name=&quot;xslt-saxon&quot;&gt;
  &lt;attribute name=&quot;in&quot;/&gt;
  &lt;attribute name=&quot;out&quot;/&gt;
  &lt;attribute name=&quot;style&quot;/&gt;
  &lt;sequential&gt;
    &lt;echo level=&quot;info&quot;&gt;XSLT Generating @{out}&lt;/echo&gt;
    &lt;java classname=&quot;net.sf.saxon.Transform&quot;
          classpath=&quot;lib/saxon-8.7.jar&quot;
          logError=&quot;true&quot;
          output=&quot;@{out}&quot;
          fork=&quot;true&quot;&gt;
      &lt;arg value=&quot;@{in}&quot;/&gt;
      &lt;arg value=&quot;@{style}&quot;/&gt;
    &lt;/java&gt;
  &lt;/sequential&gt;
&lt;/macrodef&gt;
</pre>
<p>Then invoke as:</p>
<pre>
   &lt;xslt-saxon in=&quot;source.xml&quot; style=&quot;style.xsl&quot; out=&quot;output.xml&quot;/&gt;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobias N</title>
		<link>http://vocaro.com/trevor/blog/2007/01/08/how-to-use-saxon-with-ant/comment-page-1/#comment-12029</link>
		<dc:creator>Tobias N</dc:creator>
		<pubDate>Fri, 06 Feb 2009 13:54:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.vocaro.com/trevor/blog/2007/01/08/how-to-use-saxon-with-ant/#comment-12029</guid>
		<description>Thanks a lot! You really saved my weekend :-)
As Anthony remarked, I had to put the SaxonLiaison-class-File to a jar-file, too to get it working.</description>
		<content:encoded><![CDATA[<p>Thanks a lot! You really saved my weekend <img src='http://vocaro.com/trevor/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
As Anthony remarked, I had to put the SaxonLiaison-class-File to a jar-file, too to get it working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://vocaro.com/trevor/blog/2007/01/08/how-to-use-saxon-with-ant/comment-page-1/#comment-9876</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Wed, 26 Nov 2008 12:28:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.vocaro.com/trevor/blog/2007/01/08/how-to-use-saxon-with-ant/#comment-9876</guid>
		<description>I filed a bug for this problem at the Ant bug tracker:

https://issues.apache.org/bugzilla/show_bug.cgi?id=41314

It was later marked as a duplicate of this one:

https://issues.apache.org/bugzilla/show_bug.cgi?id=46172

A fix for it has been checked into the repository and should be released in Ant 1.8.</description>
		<content:encoded><![CDATA[<p>I filed a bug for this problem at the Ant bug tracker:</p>
<p><a href="https://issues.apache.org/bugzilla/show_bug.cgi?id=41314" rel="nofollow">https://issues.apache.org/bugzilla/show_bug.cgi?id=41314</a></p>
<p>It was later marked as a duplicate of this one:</p>
<p><a href="https://issues.apache.org/bugzilla/show_bug.cgi?id=46172" rel="nofollow">https://issues.apache.org/bugzilla/show_bug.cgi?id=46172</a></p>
<p>A fix for it has been checked into the repository and should be released in Ant 1.8.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Holodnak</title>
		<link>http://vocaro.com/trevor/blog/2007/01/08/how-to-use-saxon-with-ant/comment-page-1/#comment-7666</link>
		<dc:creator>Michael Holodnak</dc:creator>
		<pubDate>Tue, 12 Aug 2008 18:13:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.vocaro.com/trevor/blog/2007/01/08/how-to-use-saxon-with-ant/#comment-7666</guid>
		<description>Actually, I got this to work: 
&lt;code&gt;
&lt;!-- Converts Taxonomy XML exports into HTML files. --&gt;
&lt;target name=&quot;xslt&quot; depends=&quot;xsltDepends&quot;&gt;
&#160;&#160;&#160;&#160;&lt;property name=&quot;javax.xml.transform.TransformerFactory&quot;
&#160;&#160;&#160;&#160;&#160;&#160;value=&quot;${xsl.factory}&quot;/&gt;
&#160;&#160;&#160;&#160;&lt;xslt style=&quot;${build.xsl}/${xsl.html}&quot;
&#160;&#160;&#160;&#160;&#160;&#160;destdir=&quot;${build.html}&quot; classpathref=&quot;saxon.path&quot;
&#160;&#160;&#160;&#160;&#160;&#160;basedir=&quot;${build.xml}&quot; includes=&quot;*.xml&quot;/&gt;
&lt;/target&gt; 
&lt;/code&gt;

where &quot;xsl.factory&quot; is the class name for the Saxon implementation.  I found this article helpful though.  I&#039;m using Ant v1.7.0 through Eclipse v3.3.2, Saxon v9.0.0.1

I was able to set the “javax.xml.transform.TransformerFactory” with a “property” set inside the target where I called the “xslt” task and point it to Saxon.
</description>
		<content:encoded><![CDATA[<p>Actually, I got this to work:<br />
<code><br />
&lt;!-- Converts Taxonomy XML exports into HTML files. --&gt;<br />
&lt;target name=&quot;xslt&quot; depends=&quot;xsltDepends&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;property name=&quot;javax.xml.transform.TransformerFactory&quot;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value=&quot;${xsl.factory}&quot;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;xslt style=&quot;${build.xsl}/${xsl.html}&quot;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;destdir=&quot;${build.html}&quot; classpathref=&quot;saxon.path&quot;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;basedir=&quot;${build.xml}&quot; includes=&quot;*.xml&quot;/&gt;<br />
&lt;/target&gt;<br />
</code></p>
<p>where &#8220;xsl.factory&#8221; is the class name for the Saxon implementation.  I found this article helpful though.  I&#8217;m using Ant v1.7.0 through Eclipse v3.3.2, Saxon v9.0.0.1</p>
<p>I was able to set the “javax.xml.transform.TransformerFactory” with a “property” set inside the target where I called the “xslt” task and point it to Saxon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobias Vogt</title>
		<link>http://vocaro.com/trevor/blog/2007/01/08/how-to-use-saxon-with-ant/comment-page-1/#comment-7096</link>
		<dc:creator>Tobias Vogt</dc:creator>
		<pubDate>Thu, 15 May 2008 12:22:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.vocaro.com/trevor/blog/2007/01/08/how-to-use-saxon-with-ant/#comment-7096</guid>
		<description>Got stuck on the same issue today and your workaround works fine - Thanks!</description>
		<content:encoded><![CDATA[<p>Got stuck on the same issue today and your workaround works fine &#8211; Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Pawson</title>
		<link>http://vocaro.com/trevor/blog/2007/01/08/how-to-use-saxon-with-ant/comment-page-1/#comment-6628</link>
		<dc:creator>Dave Pawson</dc:creator>
		<pubDate>Sun, 13 Apr 2008 08:34:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.vocaro.com/trevor/blog/2007/01/08/how-to-use-saxon-with-ant/#comment-6628</guid>
		<description>Trying this with Saxon 6.5.5
Changed the class to 
private final static String SAXON_FACTORY =
	&quot;com.icl.saxon.TransformerFactoryImpl&quot;;
compiled OK (needs ant.jar and ant-trax.jar in cp)

I want to specify a different parser, normally done via attributes
and values as children of 
Seems not to work?

 
	
     

I wish the ant team could address this :-)</description>
		<content:encoded><![CDATA[<p>Trying this with Saxon 6.5.5<br />
Changed the class to<br />
private final static String SAXON_FACTORY =<br />
	&#8220;com.icl.saxon.TransformerFactoryImpl&#8221;;<br />
compiled OK (needs ant.jar and ant-trax.jar in cp)</p>
<p>I want to specify a different parser, normally done via attributes<br />
and values as children of<br />
Seems not to work?</p>
<p>I wish the ant team could address this <img src='http://vocaro.com/trevor/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony</title>
		<link>http://vocaro.com/trevor/blog/2007/01/08/how-to-use-saxon-with-ant/comment-page-1/#comment-6210</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Mon, 11 Feb 2008 08:46:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.vocaro.com/trevor/blog/2007/01/08/how-to-use-saxon-with-ant/#comment-6210</guid>
		<description>Note that in my case I had to put the SaxonLiaison.class in a jar file (jar cf SaxonLiaison.jar SaxonLiaison.class) and put this jar file in my ant/lib directory then it worked.</description>
		<content:encoded><![CDATA[<p>Note that in my case I had to put the SaxonLiaison.class in a jar file (jar cf SaxonLiaison.jar SaxonLiaison.class) and put this jar file in my ant/lib directory then it worked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kilian</title>
		<link>http://vocaro.com/trevor/blog/2007/01/08/how-to-use-saxon-with-ant/comment-page-1/#comment-5064</link>
		<dc:creator>Kilian</dc:creator>
		<pubDate>Sun, 01 Jul 2007 12:56:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.vocaro.com/trevor/blog/2007/01/08/how-to-use-saxon-with-ant/#comment-5064</guid>
		<description>Your solution has saved my day. Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Your solution has saved my day. Thanks a lot!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
