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

RE: help regarding excelon

  • From: johns@s... (John F. Schlesinger)
  • To: 'ravi kakani' <ravixml@y...>, xml-dev@l...
  • Date: Thu, 20 Jul 2000 09:24:59 -0400

ravi kakani
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/


  • Follow-Ups:
    • Schemas
      • From: raj@p... (J.G.A. Mallaparaju)

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.