Subject: RE: combining multiple data sources From: Bill Abbas <babbas@xxxxxxxxxx> Date: Thu, 9 Dec 1999 13:29:56 -0800 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
combining multiple data sources, Clay_Rowland | Thread | combining multiple data sources, oliver . bruening |
combining multiple data sources, Clay_Rowland | Date | Re: Another newbie question, Sanjay Saxena |
Month |