[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: help regarding excelon
Ravi asked: " how do we link one xml to another... so that i can fetch all the employees belonging to a particular department" I think you are trying to do a join, not a link. However, if you want to do this, you can use XLink to link to multiple resources, but you will need to transform the document if you want to dynamically constrain the link (for example, "get all the employees that are not managers"). Here is an example (copied from the XLink recommendation) <!-- First of all, set up the resources --> <extendedlink xlink:type="extended"> <loc xlink:type="locator" xlink:href="..." xlink:label="parent" link:title="p1" /> <loc xlink:type="locator" xlink:href="..." xlink:label="child" xlink:title="c1" /> <loc xlink:type="locator" xlink:href="..." xlink:label="child" xlink:title="c2" /> <loc xlink:type="locator" xlink:href="..." xlink:label="child" xlink:title="c3" /> ... <!-- arc-type elements would go here --> </extendedlink> <!-- Now link from the parent to the children --> <go xlink:type="arc" xlink:from="parent" xlink:to="child" /> The problem with the XLink approach is that all joins have to be explicitly coded in the source documents. This is very inconvenient compared to SQL, so I would recommend putting the documents into an SQL database and doing the join there. Yours, John F Schlesinger SysCore Solutions 212 619 5200 x 219 917 886 5895 Mobile -----Original Message----- From: ravi kakani [mailto:ravixml@y...] Sent: Wednesday, July 19, 2000 11:16 AM To: xml-dev@l... Subject: help regarding excelon Hi, how do we link one xml to another.suppose i have two xml's one employee.xml and department.xml.how do i relate the employee.xml to department.xml, so that i can fetch all the employees belonging to a particular department.Assuming all the employee details are in employee.xml and department details in department.xml. how do i make that relation in excelon.Is it possible??if so how? Thank you for the help in advance. Bye, Ravi Kakani __________________________________________________ Do You Yahoo!? Get Yahoo! Mail Free email you can access from anywhere! http://mail.yahoo.com/
|
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
|