Hi

I've just started using Sablotron and have come accross what appears to
be an error.  I need to include some javascript in the transformed
output and have included the following code in my xslt transformation:

<xsl:template match="head">
    <xsl:copy>
        <xsl:apply-templates select="@*|node()"/>

        <script language="JavaScript">
        <xsl:comment>
           function some_function() {
               some_code_here;
           }
        //</xsl:comment>
        </script>
    </xsl:copy>
</xsl:template>

and find that the output from the transformation is re-ordered to:

<head>
<!--
           function some_function() {
              some_code_here;
           }
        //--></script></head>
<script language="JavaScript">

I've tried using the same transformation with other xslt engines and
this doesn't happen.  Has anyone used Sablotron to output javascript in
this way?  Does anyone know what the problem is?

Many thanks
Mat Jones.
[EMAIL PROTECTED]





Reply via email to