[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: combining multiple data sources
Clay, If the source documents are all files, you could use the document() function, which will get the referenced document as a node set. Not sure how you can do this if the multiple sources are, say, in-memory Document objects as opposed to files. (I'd be very interested to know how multiple XML objects, or input streams even, could be accessed from XSL. I don't particularly want to write all my Documents to the file system.) Another possibility to merge multiple Document objects, I suppose, is to chain together a number of transforms, producing a series of intermediate XML documents, the final one of which would be what you really want. This might be painfully slow ... -Bill -----Original Message----- From: Clay_Rowland@xxxxxxxxxxx [mailto:Clay_Rowland@xxxxxxxxxxx] Sent: Thursday, December 09, 1999 11:03 AM To: xsl-list@xxxxxxxxxxxxxxxx Subject: combining multiple data sources I am looking for some suggestions on how to merge multiple sources of xml data into a single stylesheet. all of the sources will have an idnumber in common. This example is simplified, and the id attribute doesn't necessarily have to be in that position: <Source1ML> <ADDRESS id="100"> <STREETNUM>123</STREETNUM> <STREETNAME>Main St.</STREETNAME> </ADDRESS> </Source1ML> <Source2ML> <CUSTOMER id="100"> <FIRSTNAME>John</FIRSTNAME> <MIDDLENAME>Q.</MIDDLENAME> <LASTNAME>Doe</LASTNAME> </CUSTOMER> </Source2ML> <Source3ML> <PHONENUMBER> <NPA>555</NPA> <NXX>555</NXX> <XXXX>1234</XXXX> </PHONENUMBER> </Source3ML> thanks. 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
|