Changeset 4239


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

Tighten up xpath expressions used for searching for atoms.

Location:
exist/trunk/xquery
Files:
2 edited

Legend:

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

    r4201 r4239  
    33declare variable $targetCollection as xs:string := 'TargetCollection'; 
    44declare variable $localIdentifier as xs:string := 'LocalID'; 
    5 for $DE in collection($targetCollection)/entry[matches(id, concat($localIdentifier,'$'))] return $DE 
     5for $DE in collection($targetCollection)/entry[matches(id, concat('__ATOM__',$localIdentifier,'$'))] return $DE 
  • 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.