Jeff,

Ahhhh This is the answer I was expecting ! but not the one I was hoping
for. But yes ! It makes sense.
So now I understand exactly what XIndice works.

So the right solution is to create an XML Schema with one unique root
element: authorization for instance, then I can create multiple documents
but each document must share the same schema (the same root element) in
order to do a query.

I am assuming that the JAXR implementation from SUN (using XIndice) is
doing this, since UDDI or eBxml is a hierarchical "database"

Olivier



                                                                                
                                                                 
                    "Jeff Greif"                                                
                                                                 
                    <[EMAIL PROTECTED]       To:     
<[email protected]>                                                  
           
                    ceton.edu>                cc:                               
                                                                 
                                              Subject:     Re: xpath across 2 
documents                                                          
                    07/26/2002 08:59 AM                                         
                                                                 
                    Please respond to                                           
                                                                 
                    xindice-users                                               
                                                                 
                                                                                
                                                                 
                                                                                
                                                                 




I don't think it should be expected to work.  The XPath query service
iterates over the collection (with some speedup from indexes) and finds
documents matching the XPath conditions.  I don't believe that it can join
documents.  Futhermore, there is no way to indicate in a single XPath
expression that one of the terms came from one document (/users/[EMAIL 
PROTECTED])
and another term came from a second document (/groups/group/@id).  The only
way this could work would be if the entire collection were considered 1
document, but in this case, either the union document would not be
well-formed XML (because it did not have a single root element) or the
XPath
expressions given in parentheses above would never be matched because they
did not include that single root element.

Jeff
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Cc: <[email protected]>
Sent: Friday, July 26, 2002 8:43 AM
Subject: Re: xpath across 2 documents


>
> Roman,
>
> Yes, but it does not work. Is it supoosed to work ? This is the question.
>
> Olivier
>
>
>
>





Reply via email to