Hi
I sent this message about a week ago but didn't see it echoed on the
list so here it is again, sorry if you have already received it. I
have come accross what appears to be an error. I need to include
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 Fixed cost Internet access available @
| Application Developer http://www.plus.net
| PlusNet Technologies Ltd
+---------------"PlusNet - The smarter way to Internet"----------------