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/
[EMAIL PROTECTED]                        [EMAIL PROTECTED]



Reply via email to