[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Creating nodeset for parameters
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: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|