[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

<xml:variable> alternative for msxml 2 parser

Subject: <xml:variable> alternative for msxml 2 parser
From: "Nidhi Wadehra" <nwadehra@xxxxxxxxxxxxxxx>
Date: Thu, 26 Jul 2001 15:11:38 -0700
msxml 2
Hi,

I am using IE5 which comes with msxml ver 2.0.
Since <xml:variable> is not supported in this version what is the
alternative.

My problem is as follows :
I have an xml in the following format:
<todolist>
<activity>Leave Application
<record id="1">
<startdate>12/12/2001</startdate>
<enddate>12/12/2001</enddate>
<priority>low</priority>
<activityinstname>leave from nidhi</activityinstname>
<role>PM</role>
</record>
 <record id="2">
<startdate>12/12/2001</startdate>
<enddate>12/12/2001</enddate>
<priority>low</priority>
<activityinstname>leave from Raghvesh</activityinstname>
<role>PL</role>
</record>
</activity>

<activity>KMS
<record id="1">
<startdate>12/12/2001</startdate>
<enddate>12/12/2001</enddate>
<priority>low</priority>
<activityinstname>Fill form</activityinstname>
<role>PM</role>
</record>
 <record id="2">
<startdate>12/12/2001</startdate>
<enddate>12/12/2001</enddate>
<priority>low</priority>
<activityinstname>Update page</activityinstname>
<role>PL</role>
</record>
</activity>
</todolist>

Now I want to display all the activities it will not be a problem .
I can write my xsl as :

<xsl:for-each select="todolist">
<xsl:value-of select="activity"/>
</xsl:for-each select>

But now if I change the xml and instead of activity I make startdate as the
root tag then I want to display all my startdates. i.e. at run time I would
be changing my root node. Now can I write a generic XSL to display my root
nodes only. Since msxml 2 will not support <xml:variable> what other way can
i use to display my root nodes without hardcoding the node names in my xsl.

Any help would be appreciated

Thanks
Nidhi


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.