Menu

#1 Test stylesheet picks up xsl:output of tested stylesheet

open
nobody
None
5
2007-02-14
2007-02-14
Tony Graham
No

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">

Discussion


Log in to post a comment.

MongoDB Logo MongoDB