[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Joining Multiple XML using XPath API of XALAN
Hi Joseph, I have the references of all the available XML Document in my Java code. What should I write in my stylesheet (XSL) so that it gets the XML DOM reference in an XSL variable???? Had it been a file, I would have given the file name to the document function ... but what to do in this case. Is the work in above going to be more than using the importNode(...) and insertBefore(...) function from Document and Node classes respectively to merge the XMLs??? Your answers will help a lot. Thanks Dennis --- Joseph Kesselman <keshlam@xxxxxxxxxx> wrote: > >I need to merge multiple in-memory DOM structures. > >... > >Is there any way to load the in-memory xml document > in > >XSL just like document function. > > Simplest answer would be to write an extension > function that knows where > to look to find your DOM (or DOMs) and returns the > appropriate Document > node. We should automagically do the right thing > with that. > > Or you could write an entity resolver which > recognizes certain "magic" > URIs as requests to access your DOMs... but that's > probably more work and > I *think* it would be less efficient. > > ______________________________________ > Joe Kesselman / IBM Research > > XSL-List info and archive: > http://www.mulberrytech.com/xsl/xsl-list > __________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com 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
|