M
mike
I have a stylesheet embedded in my html page like:
<xml id="xslFix">
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xslutput method="html"/>
<xslaram name="statusfield"></xslaram>
......<snip>....
</xml>
I want to modify the:
<xslaram name="statusfield"></xslaram> node and add a text node
there so it looks like:
<xslaram name="statusfield">stuff in here</xslaram>
<script language="JavaScript">
var sf = new ActiveXObject("MSXML2.FreeThreadedDOMDocument.4.0");
sf.load(xslFix);
var omap = sf.documentElement.getElementsByTagName('xslaram');
for ( var i=0; i<omap.length; i++ )
{
if ( omap.item(i).getAttribute("name") == "statusfield" )
{
myText=omap.item(i).createTextNode('stuff..');
omap.item(i).appendChild(myText);
}
}
</script>
But this does not work. I get an error message saying something about
this object not avaailable in this manner.
Any help is appreciated.
Mike
<xml id="xslFix">
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xslutput method="html"/>
<xslaram name="statusfield"></xslaram>
......<snip>....
</xml>
I want to modify the:
<xslaram name="statusfield"></xslaram> node and add a text node
there so it looks like:
<xslaram name="statusfield">stuff in here</xslaram>
<script language="JavaScript">
var sf = new ActiveXObject("MSXML2.FreeThreadedDOMDocument.4.0");
sf.load(xslFix);
var omap = sf.documentElement.getElementsByTagName('xslaram');
for ( var i=0; i<omap.length; i++ )
{
if ( omap.item(i).getAttribute("name") == "statusfield" )
{
myText=omap.item(i).createTextNode('stuff..');
omap.item(i).appendChild(myText);
}
}
</script>
But this does not work. I get an error message saying something about
this object not avaailable in this manner.
Any help is appreciated.
Mike