This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Set the param value from JavaScript
- To: XSL-List at mulberrytech dot com
- Subject: Set the param value from JavaScript
- From: Bharat dot Chintapally at CommerceQuest dot com
- Date: Tue, 7 Nov 2000 15:33:27 -0500
- Reply-To: xsl-list at mulberrytech dot com
Hello:
I am trying to set a param value using JavaScript but I am unable to access
the right node, I am not sure about my xpath expression. I am using MSXML3
in IE 5.5 browser
My top level XSL looks like the following,
<xsl:template match="/">
<xsl:apply-templates select="Status/Data">
<xsl:with-param name="startRow">1</xsl:with-param>
<xsl:with-param name="endRow">2</xsl:with-param>
</xsl:apply-templates>
</xsl:template>
I am trying to set the startRow value using a JavaScript method and the
following XPath string
/***
var s = document.XSLDocument.selectSingleNode("*/xsl:template[@match
='/']//xsl:apply-templates/xsl:with-param[@name='startRow']");
alert(s.value);
/****
I am getting some object back from the selectSingleNode() method, but
unable to set it's value. Am I doing it right?
thanks
-- bharat
---------------------------------------------------------------
Bharat Chintapally
CommerceQuest Inc.
bharat.chintapally@commercequest.com
New Phone # 813-639-6478
---------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list