[
Lists Home |
Date Index |
Thread Index
]
- From: johns@syscore.com (John F. Schlesinger)
- To: 'ravi kakani' <ravixml@yahoo.com>, xml-dev@lists.xml.org
- Date: Thu, 20 Jul 2000 09:24:59 -0400
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@yahoo.com]
Sent: Wednesday, July 19, 2000 11:16 AM
To: xml-dev@lists.xml.org
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/
- Follow-Ups:
- Schemas
- From: raj@pacific.net.in (J.G.A. Mallaparaju)
|