<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
<xsl:output method="html"/>
<xsl:variable name="apache">&lt;!--#include virtual="/cgi-bin/example.cgi?argument=value"--></xsl:variable>
<xsl:variable name="apache2">&lt;!--#if expr="($a = test1) &amp;&amp; ($b = test2)" --></xsl:variable>
<xsl:variable name="apache3"><xsl:text disable-output-escaping="yes"><![CDATA[<!--#echo var='STATIC_SERVER_B'-->]]></xsl:text></xsl:variable>
<xsl:variable name="script">&amp;{My script};</xsl:variable>

<xsl:template match="/">
    <a href="{$apache}/dir with spaces/{$apache2}/dir'with&quot;quotes/yet another dir with spaces/{$apache3}/page.html" onMouseUp="{$script}">link</a>
</xsl:template>

</xsl:stylesheet>
