This is the mail archive of the
mailing list .
Re: Passing a node-set as param to script?
- From: hnorris norris <hnorrisalt at yahoo dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Sun, 10 Feb 2002 19:13:44 -0800 (PST)
- Subject: Re: [xsl] Passing a node-set as param to script?
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi Robert -
Thanks for your excellent suggestions - I'm not using
the approach you suggested though since I want to be
able to pass fairly large lists of properties and
Unfortunately, when I try to use the xsl document()
function to get my tree root node, I get an error
suggesting document() is trying to open a file on my
disk - anybody have any ideas on how to solve that
--- Robert Koberg <firstname.lastname@example.org> wrote:
> Since you are producing a DOM Document on the server
> and passing parameters
> to the XSLT, why not just further parse your
> Document and send exactly what
> you need to specific parameters? And if this is an
> option it would probably
> be faster if you used SAX to find the parameters to
> pass to the
> transformation. I am basing this on the assumption
> that you are sending a
> single User's information.
> ----- Original Message -----
> From: "hnorris norris" <email@example.com>
> To: <XSL-List@lists.mulberrytech.com>
> Sent: Sunday, February 10, 2002 5:44 PM
> Subject: [xsl] Passing a node-set as param to
> > Hello -
> > Is it possible to use Xpath expressions to create
> > 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
> > 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
> > for example, assuming that $MyDocument represents
> > document root node? If so, how do you reference
> > 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
> > of some kind? Does Apache provide any tool kits
> > building that object, such as Apache ECS, etc?
> > 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:
> XSL-List info and archive:
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list