Hi
xml data can be embedded within an html page although I don't know if that's what you want to do.
When embedded its referred to as a data island BUT as far as know this only works with IE.
<xml>
</xml>
However,
Within your xsl file, you can code your Javascript & html as if it's an html file. If you go back a couple of threads you'll see the discussion on Binding XML that Avator helped me out with. here's fragment of my xsl
<xsl:template match="/">
<html>
<head>
<script language="JavaScript">
function showValue() {.......}
</script>
</head>
<body>
<select id ="combo1" onchange="showValue();">
<xsl:for-each select="recordset">
<xsl:apply-templates select="row"/>
</xsl:for-each>
</select>
</body>
</html>
</xsl:template>
The above is inside a xsl file so as you can see I have xsl tags, html tags & Javascript code all in one single file. It still doesn't address the problem of having xml as well in the xsl file but I do recall a discussion on that topic(not necessarily this forum). Let me get back to you.
Hope this helps
caf