You can also combine two XPath queries into one with an "or" clause. I have heard it works, I haven't tried it. When I want to do two different searches, I actually execute two searches and then do an intersection or a union on the keys that are returned. I suspect that you could do an "or" or an "and", depending on whether you wanted a union or an intersection.
Mark "Robert S. Koberg" wrote: > Hi, > > Jeff Greif wrote: > > I'm not sure I understand what you're proposing to do, but you cannot use > > XPath to join multiple documents, as far as I know. Suppose I have the > > XPath expression > > /authorization/users/user/[EMAIL > > PROTECTED]/authorization/groups/group/@id] > > which is the revised version of your join query. How is the XPath processor > > supposed to know that the two different appearances of /authorization stand > > for two distinct trees, or whether it is supposed to find > > /authorization/users and /authorization/groups in the same document? If you > > want to join across multiple documents, you need to mash them into one > > document first, *I believe*. > > > > You could do something like: > > <xsl:variable > name="ext_doc" > select="document('/uri/resolved/to/something.xml')/authorization"/> > > then you could do: > > /authorization/users/user/[EMAIL PROTECTED]/groups/group/@id] > > best, > -Rob -- Mark J Stang System Architect Cybershop Systems
begin:vcard n:Stang;Mark x-mozilla-html:TRUE adr:;;;;;; version:2.1 email;internet:[EMAIL PROTECTED] fn:Mark Stang end:vcard