This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Set the param value from JavaScript


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]