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

alternative to msxsl:node-set($variable)

Subject: alternative to msxsl:node-set($variable)
From: "Paul Thomas" <pthomas@xxxxxxxxxxxxxxx>
Date: Wed, 10 Jan 2001 21:19:34 +0530
msxsl node set
Hi all,

I've been searching all over the place for a way to handle our problem, and
I can't find one.  I hope someone on the list can help.   From what I've
seen, it looks like using "msxsl:node-set($variable)" is what we need, but
our product is stuck with the May 2000 msxml parser, so we can't use it.
We'll upgrade the parser eventually, but we can't do it now...

What we want to do is this:

1. A user clicks on an html link to request something.  Based on which link
was clicked, we store an xpath expression in an xml element node, i.e.


<ActionPath>Challenges/Incontrol/AspectNode/ActionNode[Action/@ID=21]</Actio
nPath>

2. Later, we retrieve that path into a variable and use it in an xpath
expression in order to show what the user wanted to see.

e.g.

			<xsl:variable name="ActionPathVar" select="ActionPath"/>

			<xsl:for-each select="$ActionPathVar">
					[show the stuff the user wanted...]
			</xsl:for-each>


It seems like our problem is that we've got a result tree fragment in our
ActionPathVar when what we need is a node-set.  That much I think I've
figured out from previous posts.  But I haven't found a workaround to this
that doesn't use a node-set() function.

Any ideas would be much appreciated.

Thanks a lot.
Paul


 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.