RE: dynamically changing the XSL Node

Subject: RE: dynamically changing the XSL Node
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Thu, 7 Sep 2000 19:53:27 +0100
Rama,
Try
Set Node =
XSLDoc.selectSingleNode("//xsl:for-each[@select='xml/rs:data/z:row/p1']")
Node.setAttribute("select", 'xml/rs:data/z:row/p2')

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


>-----Original Message-----
>From: owner-xsl-list@xxxxxxxxxxxxxxxx
>[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Krishnamurthy, Rama
>Sent: 07 September 2000 19:27
>To: xsl-list@xxxxxxxxxxxxxxxx
>Subject: dynamically changing the XSL Node
>
>
>Hi ,
>     I've created a XSL file and need to change a 'for-each pattern'
>dynamically.
>
> I guess it could be done by loading the XSL file in a
>DOM object and accessing its node.
>
>However, I'm not sure about the syntax. Can anyone help?
>
>For eg.
>Can I access the XSL node by the following code
>
>Set Node = XSLDoc.selectSingleNode("xsl:for-each
>select='xml/rs:data/z:row/p1")
>
>If so,how do I change the node to "xsl:for-each
>select='xml/rs:data/z:row/p2"
>
>
>Rama.
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread