<xsl:variable name="quotedthkeys">
<xsl:call-template name="quote">
- <xsl:with-param name="s" select="$thkeys"/>
+ <xsl:with-param name="s" select="'T1,T2,L,E'"/>
</xsl:call-template>
</xsl:variable>
-<xsl:variable name="quotedquotedthkeys">
+<xsl:variable name="quotedekeys">
<xsl:call-template name="quote">
- <xsl:with-param name="s" select="$quotedkeys"/>
+ <xsl:with-param name="s" select="$thkeys"/>
</xsl:call-template>
</xsl:variable>
</xsl:call-template>
</xsl:variable>
+<xsl:variable name="quotedquotedkeys">
+ <xsl:call-template name="quote">
+ <xsl:with-param name="s" select="$quotedkeys"/>
+ </xsl:call-template>
+</xsl:variable>
+
+<xsl:variable name="quotedquotedthkeys">
+ <xsl:call-template name="quote">
+ <xsl:with-param name="s" select="$quotedthkeys"/>
+ </xsl:call-template>
+</xsl:variable>
+
<xsl:variable name="header0"><xsl:value-of select="$interfaceURL"/>?url=</xsl:variable>
<xsl:variable name="header1"><xsl:value-of select="$escaped-processorURL"/>apply?keys=</xsl:variable>
<xsl:variable name="header2">&param.naturalLanguage=<xsl:value-of select="$naturalLanguage"/>&param.annotations=<xsl:value-of select="$annotations"/>&prop.media-type=<xsl:value-of select="$media-type"/>&param.media-type=<xsl:value-of select="$media-type"/>&prop.doctype-public=<xsl:value-of select="$escaped-doctype-public"/>&param.doctype-public=<xsl:value-of select="$escaped-doctype-public"/>&prop.encoding=<xsl:value-of select="$encoding"/>&param.encoding=<xsl:value-of select="$encoding"/>&param.keys=<xsl:value-of select="$quotedkeys"/>&param.getterURL=<xsl:value-of select="$escaped-getterURL"/>&param.processorURL=<xsl:value-of select="$escaped-processorURL"/>&param.interfaceURL=<xsl:value-of select="$escaped-interfaceURL"/>&xmluri=<xsl:value-of select="$absPath"/></xsl:variable>
+<xsl:variable name="header3">&param.thkeys=<xsl:value-of select="$quotedekeys"/></xsl:variable>
<xsl:variable name="quotedheader1">
<xsl:call-template name="quote">
</xsl:call-template>
</xsl:variable>
+<xsl:variable name="quotedheader3">
+ <xsl:call-template name="quote">
+ <xsl:with-param name="s" select="$header3"/>
+ </xsl:call-template>
+</xsl:variable>
+
<!-- makeURL() maps URIs into URLs -->
<!-- The target of the URL is the whole frameset -->
<xsl:variable name="biquotedfixedheader">
+ <xsl:value-of select="$header0"/>
+ <xsl:value-of select="$quotedheader1"/>
+ <xsl:value-of select="$quotedquotedkeys"/>
+ <xsl:value-of select="$quotedheader2"/>
+</xsl:variable>
+
+<xsl:variable name="biquotedthfixedheader">
<xsl:value-of select="$header0"/>
<xsl:value-of select="$quotedheader1"/>
<xsl:value-of select="$quotedquotedthkeys"/>
<!-- type, instead, is not propagated -->
<xsl:template name="makeURL">
<xsl:param name="uri" select="''"/>
- <xsl:value-of select="$biquotedfixedheader"/>
- <xsl:value-of select="$uri"/>%26param.CICURI%3D<xsl:value-of select="$uri"/>
+ <xsl:value-of select="$biquotedfixedheader"/>
+ <xsl:value-of select="$uri"/>%26param.CICURI%3D<xsl:value-of select="$uri"/>
+</xsl:template>
+<xsl:template name="makeTheoryURL">
+<xsl:param name="uri" select="''"/>
+ <xsl:value-of select="$biquotedthfixedheader"/>
+ <xsl:value-of select="$uri"/>%26param.CICURI%3D<xsl:value-of select="$uri"/>
+ <xsl:value-of select="$quotedheader3"/>
</xsl:template>
-<!-- makeTheoryURL() maps URIs into URLs -->
+<!-- makeURL4embedding() maps URIs into URLs -->
<!-- The target of the URL is only the processed document -->
-<xsl:template name="makeTheoryURL">
+<xsl:template name="makeURL4embedding">
<xsl:param name="uri" select="''"/>
<xsl:param name="type" select="0"/>
<xsl:value-of select="$header1"/>
- <xsl:value-of select="$quotedthkeys"/>
+ <xsl:value-of select="$quotedekeys"/>
<xsl:value-of select="$header2"/>
<xsl:value-of select="$uri"/>&param.CICURI=<xsl:value-of select="$uri"/>&param.type=<xsl:value-of select="$type"/>
</xsl:template>
</xsl:stylesheet>
+
+
+