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]

RE: dynamically changing the XSL Node


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

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