|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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@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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








