[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: combining multiple data sources

Subject: RE: combining multiple data sources
From: Bill Abbas <babbas@xxxxxxxxxx>
Date: Thu, 9 Dec 1999 13:29:56 -0800
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.