Using the unnamed output definition in the stylesheet generated by generate-tests.xsl and also importing the stylesheet being tested means the generated stylesheet picks up definitions from any unnamed output definitions in the stylesheet being tested.
The generated stylesheet should use a named output definition that is at least unlikely to be also used by the stylesheet being tested.
Regards,
Tony Graham.
--- generate-tests.xsl~ 2006-07-28 15:27:44.000000000 +0100
+++ generate-tests.xsl 2007-02-14 00:11:57.487369600 +0000
@@ -59,9 +59,11 @@
</xsl:if>
<import href="{$stylesheet-uri}"/>
<namespace-alias stylesheet-prefix="o" result-prefix="xsl" />
- <output indent="yes" />
+ <output indent="yes" name="test:test"/>
<template match="/">
- <call-template name="main" />
+ <result-document format="test:test">
+ <call-template name="main" />
+ </result-document>
</template>
<template name="main">
<processing-instruction name="xml-stylesheet">