|
RE: XQuery question: msg#00192text.xml.exist
Hi Jonathan, > I am struggling with an xquery problem and I would be very grateful > for any advice. I'm not completely sure I understand what you need, but here's a query on your data that might give you some ideas: distinct-values(tokenize(string-join(//link/@targets[. |= $id], ' '), '\s+')) This will give you a list of (distinct) letters that you can iterate over. (If you'd rather have it as a single string, in the format of the targets attribute, just string-join it again.) Note that I have no idea whether this is in fact faster than your current approach -- I suspect it does much the same thing under the covers. -- P. -- Piotr Kaminski (piotr@xxxxxxxxxxxx) It's the heart afraid of breaking that never learns to dance.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | XUpate exception in september snapshots: 00192, Guillaume Pothier |
|---|---|
| Next by Date: | Re: XUpate exception in september snapshots: 00192, Wolfgang Meier |
| Previous by Thread: | XQuery questioni: 00192, Jonathan Miller |
| Next by Thread: | Fixed snapshot: 00192, Wolfgang Meier |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |