Ignore:
Timestamp:
29/09/08 09:46:14 (11 years ago)
Author:
cbyrom
Message:

Tighten up xpath expressions used for searching for atoms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exist/trunk/xquery/atomFullPath.xq

    r4231 r4239  
    44declare variable $targetCollection as xs:string := 'TargetCollection'; 
    55declare variable $localIdentifier as xs:string := 'LocalID'; 
    6 for $DE in collection($targetCollection)/entry[matches(id, concat($localIdentifier,'$'))]  
     6for $DE in collection($targetCollection)/entry[matches(id, concat('__ATOM__',$localIdentifier,'$'))]  
    77return  
    88<collectionPath>{util:collection-name($DE)}</collectionPath> 
Note: See TracChangeset for help on using the changeset viewer.