Changeset 3181 for exist/trunk/xquery


Ignore:
Timestamp:
04/01/08 19:55:21 (12 years ago)
Author:
selatham
Message:

bug fixes

Location:
exist/trunk/xquery
Files:
2 edited

Legend:

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

    r3164 r3181  
    11declare default element namespace 'http://www.oceannet.org/mdip/xml'; 
    2 for $DE in collection('TargetCollection')/Metadata/DatasetIdentifier  
     2declare variable $targetCollection as xs:string {'TargetCollection'}; 
     3for $DE in collection($targetCollection)/Metadata/DatasetIdentifier 
    34let $f:=util:document-name($DE) 
    45return  
  • exist/trunk/xquery/molesList.xq

    r3164 r3181  
    1 (: This moles listing query returns all the moles documents and their identifiers within a specific TargetCollection and a particular type (default is dgDataEntity) :)  
     1(: This moles listing query returns all the moles DataEntity documents and their local identifiers within a specific TargetCollection and a particular type (default is dgDataEntity) :) 
    22declare default element namespace 'http://ndg.nerc.ac.uk/moles'; 
    33for $DE in collection('TargetCollection')/dgMetadata/dgMetadataRecord[exists(dgDataEntity)] 
     
    55return 
    66<dgMetadataRecord> 
    7 {$DE/dgMetadataID/repositoryIdentifier}{$DE/dgMetadataID/localIdentifier} 
     7<repositoryID>{string($DE/dgMetadataID/localIdentifier)}</repositoryID> 
    88<fileName>{$f}</fileName> 
    99<created>{xmldb:created(util:collection-name($DE),$f)}</created> 
Note: See TracChangeset for help on using the changeset viewer.