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

Passing a node-set as param to script?

Subject: Passing a node-set as param to script?
From: hnorris norris <hnorrisalt@xxxxxxxxx>
Date: Sun, 10 Feb 2002 17:44:50 -0800 (PST)
script param
Hello -

Is it possible to use Xpath expressions to create a
node-set from a DOM Document object?  

I'm passing a Document from my servlet to my script as
a parameter: <xsl:param name="MyDocument"/>

I can use <xsl:value-of select="$MyDocument", etc to
output the node values okay; however, Xpath
expressions like select="$MyDocument/User" seem not to
produce a node set.  Am I making an error in my Xpath,
for example, assuming that $MyDocument represents the
document root node?  If so, how do you reference the
root node?

If the problem is that XPath can't be used on DOM
Documents, then what what type of object should be
used to pass a tree as a script param?  A Sax node-set
of some kind?  Does Apache provide any tool kits for
building that object, such as Apache ECS, etc?  Any
examples of how to do this would be greatly
appreciated!  Thanks for your suggestions -

- Holten



__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

 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.