Subject: RE: [xsl] Creating nodeset for parameters From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Sat, 20 Oct 2001 15:40:31 +0100 |
The best way is to create an XML document (typically a DOM) containing the information and pass the Document node to the stylesheet as a parameter. Mike Kay > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Hunsberger, > Peter > Sent: 19 October 2001 23:19 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] Creating nodeset for parameters > > > I've got a group of related items with various names that I > want to pass > into an XSLt to direct how the processing is going to > proceed. Since I > don't know the names of all the items in advance I need to > group them under > a single parameter name. As such, in my servlet that is > going to call the > transform I presume I need to create a NodeSet (or result > tree fragment?) > and then assign this as the value for the parameter I am > going to set? If > this is true, how do I go about assembling the NodeSet (or > RTF) to use as > the value for the parameter? > > I'm running Xalan FWIW, but I believe this issue should pretty much be > independent of the environment? > > Still feel like I'm missing something fundamental about how all this > works... > > Peter Hunsberger > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Creating nodeset for paramete, Hunsberger, Peter | Thread | [xsl] ordering of nodes, Eric Smith |
Re: [xsl] search and replace multip, Jeni Tennison | Date | RE: [xsl] strange behaviour in Xala, Michael Kay |
Month |