Re: Identical entries in different input documents s
At 2007-09-07 17:54 +0200, Meyer, Roland 1. (NSN - DE/Germany - MiniMD) wrote:I have the following problem. I have a couple of XML documents to merge to one output document. Each document has the same structure like this: [..........].
I didn't see your (Ken's) post earlier, I find it interesting to compare this approach to mine. Perhaps this works quite faster than my node-set + load-all-documents-at-once method (but here, too, all documents are loaded at once). The difference is, that in my approach, the varying document root note is removed (by using template match + copy-of and then node-set the root node for the copied documents becomes the same root node for all), which makes it possible to do normal muenchian grouping, instead of look-up grouping (with variables, I mean).
I hope that the added speed by using a key outweighs the overhead for using node-set. Also, using copy-of is an atomic operation and generally performs faster than applying the templates again (but of course, that is only useful when you do not need additional processing on the blocks).
Cheers, -- Abel Braaksma
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