source: exist/trunk/xquery/atomTypeList.xq @ 4532

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/exist/trunk/xquery/atomTypeList.xq@4532
Revision 4532, 523 bytes checked in by cbyrom, 11 years ago (diff)

Generalise atomDeploymentsList.xq to become atomTypeList.xq and adjust
surrounding code + tidy up some vocab data wrt deployment terms.

Line 
1(: This is an Atom deployments listing query for TargetCollection - returns
2deployments featuring the specified atom :)
3declare namespace atom = 'http://www.w3.org/2005/Atom';
4declare variable $targetCollection as xs:string := 'TargetCollection';
5declare variable $localIdentifier as xs:string := 'LocalID';
6declare variable $atomType as xs:string := 'RepositoryID';
7<docs>
8{
9for $DE in collection($targetCollection)/atom:entry[atom:category/@label = $atomType and
10        atom:link/@href = $localIdentifier] return
11$DE
12}
13</docs>
Note: See TracBrowser for help on using the repository browser.