<xsl:include href="passivetex.xsl"/>
<xsl:include href="xep.xsl"/>
+<xsl:param name="stylesheet.result.type" select="'fo'"/>
+
<!-- ==================================================================== -->
<xsl:key name="id" match="*" use="@id"/>
<xsl:include href="chunker.xsl"/>
<xsl:include href="html-rtf.xsl"/>
+<xsl:param name="stylesheet.result.type" select="'html'"/>
+
<!-- ==================================================================== -->
<xsl:key name="id" match="*" use="@id"/>
+++ /dev/null
-<refentry id="stylesheet.result.type">
-<refmeta>
-<refentrytitle>stylesheet.result.type</refentrytitle>
-<refmiscinfo role="type">list</refmiscinfo>
-<refmiscinfo role="value">html</refmiscinfo>
-<refmiscinfo role="value">fo</refmiscinfo>
-</refmeta>
-<refnamediv>
-<refname>stylesheet.result.type</refname>
-<refpurpose>Identifies the output format of this stylesheet</refpurpose>
-</refnamediv>
-
-<refsynopsisdiv>
-<src:fragment id='stylesheet.result.type.frag'><xsl:param name="stylesheet.result.type" select="'html'"/></src:fragment>
-</refsynopsisdiv>
-
-<refsect1><title>Description</title>
-
-<para>The Saxon extension functions need to know if the output format
-is HTML ('html') or XSL Formatting Objects ('fo'). This variable answers
-that question. Valid settings are 'html' or 'fo'.</para>
-
-</refsect1>
-</refentry>
</xsl:copy>
</xsl:template>
+<xsl:template match="xsl:param[@name='stylesheet.result.type']">
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+ <xsl:attribute name="select">'xhtml'</xsl:attribute>
+ </xsl:copy>
+</xsl:template>
+
<xsl:template match="xsl:param[@name='make.valid.html']">
<xsl:copy>
<xsl:copy-of select="@*"/>