logo       

Re: "joins": msg#00029

Subject: Re: "joins"
Vadim Gritsenko wrote:

Michael Wechner wrote:

Is it possible to do something like a "join"

select * from a, b where a.A=A and b.B=B and a.id=b.id

meaning I have two different doctypes within the same collection,
e.g. metadata and content, but which correspond to the same id ...?

Or do I need to aggregate these two XMLs as one document type?
But then what would the XPath expression look like?



If you can come up with an example I might be able to suggest appropriate xpath for you


well, if I merge/aggregate the two XML files and save them as one document within Xindice, then I can do the following

"/article/lenya:meta[not(wf:state='live') and dc:contributor='michi']"

whereas the two documents are

<?xml version="1.0"?>
<wf:history>
<wf:state>review</wf:state>
</wf:history>


<?xml version="1.0"?>
<article>
<lenya:meta
 <dc:contributor>michi</dc:contributor>
</lenya:meta>
</article>

and merged resp. aggregated

<?xml version="1.0"?>
<article>
<lenya:meta>
 <wf:state>review</wf:state>
 <dc:contributor>michi</dc:contributor>
</lenya:meta>
</article>


Thanks for your help

Michi



Vadim




--
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com              http://cocoon.apache.org/lenya/
michael.wechner@xxxxxxxxx                        michi@xxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe