Project

General

Profile

1
for $x in collection("/db/DRIVER/VocabularyDSResources/VocabularyDSResourceType")//TERM 
2
where 
3
	string-length($x/@english_name) > 0 and string-length($x/@code) > 0
4
return 
5
	<entry>
6
		<termEncoding>{$x/@encoding/string()}</termEncoding>
7
		<termCode>{$x/@code/string()}</termCode>
8
		<termEnglishName>{$x/@english_name/string()}</termEnglishName>
9
		<termNativeName>{$x/@native_name/string()}</termNativeName>
10
		<vocCode>{$x/../../VOCABULARY_NAME/@code/string()}</vocCode>
11
		<vocName>{$x/../../VOCABULARY_NAME/text()}</vocName>
12
		<vocDescription>{$x/../../VOCABULARY_DESCRIPTION/text()}</vocDescription>
13
	</entry>
(6-6/6)