Changeset 673 for TI07-MOLES
- Timestamp:
- 14/03/06 16:13:20 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI07-MOLES/trunk/StubB/XQuery/NDG-DEStubB.xquery
r648 r673 1 for $DE in collection('/db/ndg_B_metadata')/dgMetadata/dgMetadataRecord[ dgDataEntity!=''and dgMetadataID[schemeIdentifier='NDG-B0' and repositoryIdentifier='repositoryID' and localIdentifier='localID']]1 for $DE in collection('/db/ndg_B_metadata')/dgMetadata/dgMetadataRecord[exists('dgDataEntity') and dgMetadataID[schemeIdentifier='NDG-B0' and repositoryIdentifier='repositoryID' and localIdentifier='localID']] 2 2 return 3 3 <dgMetadataRecord> … … 78 78 {for $DataOtherRolesRole in $DE/dgDataEntity/dgDataRoles/dgDataOtherRoles/dgRoleHolder 79 79 order by $DataOtherRolesRole/startDate empty least, $DataOtherRolesRole/endDate empty least 80 return 80 return 81 81 <dgRoleHolder> 82 {for $DataOtherRolesRoleHolder in collection('/db/ndg_B_metadata')/dgMetadata/(dgOrganisation | dgPerson)[(dgMetadataID/schemeIdentifier='NDG-B0' and dgMetadataID/repositoryIdentifier=$DataOtherRolesRole/*/repositoryIdentifier and dgMetadataID/localIdentifier=$DataOtherRolesRole/*/localIdentifier)] return $DataOtherRolesRoleHolder} 82 {if (exists($DataOtherRolesRole/dgOrganisationID)) then ( 83 for $DataOtherRolesRoleHolder in /dgMetadata/dgOrganisation[dgMetadataID[schemeIdentifier='NDG-B0' and repositoryIdentifier=$DataOtherRolesRole/dgOrganisationID/repositoryIdentifier and localIdentifier=$DataOtherRolesRole/dgOrganisationID/localIdentifier]] 84 return $DataOtherRolesRoleHolder) 85 else () 86 } 87 {if (exists($DataOtherRolesRole/dgPersonID)) then ( 88 for $DataOtherRolesRoleHolder in /dgMetadata/dgPerson[dgMetadataID[schemeIdentifier='NDG-B0' and repositoryIdentifier=$DataOtherRolesRole/dgPersonID/repositoryIdentifier and localIdentifier=$DataOtherRolesRole/dgPersonID/localIdentifier]] 89 return $DataOtherRolesRoleHolder) 90 else () 91 } 83 92 {$DataOtherRolesRole/startDate} 84 93 {$DataOtherRolesRole/endDate} … … 166 175 {$DE/MetadataSecurity} 167 176 </dgMetadataRecord> 177 (: Stylus Studio meta-information - (c) 2004-2005. Progress Software Corporation. All rights reserved. 178 <metaInformation> 179 <scenarios ><scenario default="yes" name="Scenario1" userelativepaths="yes" externalpreview="no" url="..\..\..\..\..\..\..\My Documents\ndgBXML\ndgB.xml" outputurl="" processortype="internal" tcpport="2233" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" host="" port="8000" user="" password=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition></MapperBlockPosition></MapperMetaTag> 180 </metaInformation> 181 :)
Note: See TracChangeset
for help on using the changeset viewer.