<?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: Why use more that XSLT for testing XSLT?</title>
	<atom:link href="http://inasmuch.as/2008/06/09/why-use-more-that-xslt-for-testing-xslt/feed/" rel="self" type="application/rss+xml" />
	<link>http://inasmuch.as/2008/06/09/why-use-more-that-xslt-for-testing-xslt/</link>
	<description>...Life&#039;s but a walking shadow</description>
	<lastBuildDate>Mon, 05 Oct 2009 15:13:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: tkg</title>
		<link>http://inasmuch.as/2008/06/09/why-use-more-that-xslt-for-testing-xslt/comment-page-1/#comment-3646</link>
		<dc:creator>tkg</dc:creator>
		<pubDate>Mon, 09 Jun 2008 15:18:20 +0000</pubDate>
		<guid isPermaLink="false">http://tkg.menteith.com/2008/06/09/why-use-more-that-xslt-for-testing-xslt/#comment-3646</guid>
		<description>&lt;p&gt;Jeni,&lt;/p&gt;
&lt;p&gt;Thanks for the hint about parameters.  You can do that with Juxy and with UTF-X (http://utf-x.sourceforge.net/).  Juxy also lets you set global variables (I think at least one of the XSLT frameworks does too).  It&#039;s not covered in the XMLUnit documentation, but inasmuch as XMLUnit just runs a JAXP transformation (and presumably does something similar for C#), setting parameters should be possible with XMLUnit, too.&lt;/p&gt;
&lt;p&gt;I think we all have dreams of making the hub format for testing XSLT (for a very small value of &quot;all&quot;).  I have a XML format for Juxy tests that I&#039;ve considered could be usefully transformed into tests for other frameworks.&lt;/p&gt;
&lt;p&gt;I guess any framework that can run a stylesheet multiple times and recover from terminating stylesheets would do the job.  One issue for an XProc pipeline would be how to generate reports such that you can see the results for tests that terminated alongside results for tests that didn&#039;t.&lt;/p&gt;
&lt;p&gt;The Behavior-Driven-Development stuff that I&#039;ve seen talks in the same breath about using mock objects when testing.  XSLT isn&#039;t exactly object oriented, and stylesheets seldom make any pretense of presenting an API, so in addition to being generally interested in seeing XSpec when it&#039;s done, I&#039;d be interested in seeing what it would say about testing XSLT.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Jeni,</p>
<p>Thanks for the hint about parameters.  You can do that with Juxy and with UTF-X (<a href="http://utf-x.sourceforge.net/" rel="nofollow">http://utf-x.sourceforge.net/</a>).  Juxy also lets you set global variables (I think at least one of the XSLT frameworks does too).  It&#8217;s not covered in the XMLUnit documentation, but inasmuch as XMLUnit just runs a JAXP transformation (and presumably does something similar for C#), setting parameters should be possible with XMLUnit, too.</p>
<p>I think we all have dreams of making the hub format for testing XSLT (for a very small value of &#8220;all&#8221;).  I have a XML format for Juxy tests that I&#8217;ve considered could be usefully transformed into tests for other frameworks.</p>
<p>I guess any framework that can run a stylesheet multiple times and recover from terminating stylesheets would do the job.  One issue for an XProc pipeline would be how to generate reports such that you can see the results for tests that terminated alongside results for tests that didn&#8217;t.</p>
<p>The Behavior-Driven-Development stuff that I&#8217;ve seen talks in the same breath about using mock objects when testing.  XSLT isn&#8217;t exactly object oriented, and stylesheets seldom make any pretense of presenting an API, so in addition to being generally interested in seeing XSpec when it&#8217;s done, I&#8217;d be interested in seeing what it would say about testing XSLT.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeni Tennison</title>
		<link>http://inasmuch.as/2008/06/09/why-use-more-that-xslt-for-testing-xslt/comment-page-1/#comment-3645</link>
		<dc:creator>Jeni Tennison</dc:creator>
		<pubDate>Mon, 09 Jun 2008 13:43:32 +0000</pubDate>
		<guid isPermaLink="false">http://tkg.menteith.com/2008/06/09/why-use-more-that-xslt-for-testing-xslt/#comment-3645</guid>
		<description>Tony,

Another good reason for going outside an XSLT-based framework is to test how stylesheet parameters should change the output.

I have a dream of having an platform-neutral XSLT test document format which could be implemented in any language. One method would be a transformation into an XProc pipeline, which you then run. XProc has the advantage of being able to set parameters, catch errors (messages), and passes on multiple result documents as one of the outputs of the XSLT step. I have no doubt that something similar could be achieved today through a transformation into an ant script.

By the way, I&#039;ve been doing some work on a new Behavior-Driven-Development-based framework, which I have named(!) XSpec. More to come soon...

Jeni</description>
		<content:encoded><![CDATA[<p>Tony,</p>
<p>Another good reason for going outside an XSLT-based framework is to test how stylesheet parameters should change the output.</p>
<p>I have a dream of having an platform-neutral XSLT test document format which could be implemented in any language. One method would be a transformation into an XProc pipeline, which you then run. XProc has the advantage of being able to set parameters, catch errors (messages), and passes on multiple result documents as one of the outputs of the XSLT step. I have no doubt that something similar could be achieved today through a transformation into an ant script.</p>
<p>By the way, I&#8217;ve been doing some work on a new Behavior-Driven-Development-based framework, which I have named(!) XSpec. More to come soon&#8230;</p>
<p>Jeni</p>
]]></content:encoded>
	</item>
</channel>
</rss>
