This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: dynamically changing the XSL Node
- To: <xsl-list at mulberrytech dot com>
- Subject: RE: dynamically changing the XSL Node
- From: "Chris Bayes" <Chris at Bayes dot co dot uk>
- Date: Thu, 7 Sep 2000 19:53:27 +0100
- Reply-To: xsl-list at mulberrytech dot com
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@mulberrytech.com
>[mailto:owner-xsl-list@mulberrytech.com]On Behalf Of Krishnamurthy, Rama
>Sent: 07 September 2000 19:27
>To: xsl-list@mulberrytech.com
>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