Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Qualifiers can also be defined by referring to a csv file :in the configuration. For that the <file> and <id> are required. By using %% can be referred to the content of columns in the csv file. So the next example below the columns "qualifierId" and "qualifierName" determine the id and name of all qualifiers present in the csv file. The columns can be used multiple times also in combination with other text as is done for the definition of the attribute "ExternalQualifierId" which will start with "LNG_KLAS_" for all qualifiers followed by the content in the "qualifierId" column.

Code Block
xml
xml
<?xml version="1.0" encoding="UTF-8"?>
<qualifiers xmlns="http://www.wldelft.nl/fews"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/qualifiers.xsd">
	<csvFile>
		<file>vissen_lengteklasse.csv</file>
		<id>%qualifierId%</id>
		<name>%qualifierName%</name>
		<group>Vissen lengteklasse</group>
		<attribute id="ExternalQualifierId">
			<text>LNG_KLAS_%qualifierId%</text>
		</attribute>
	</csvFile>
</qualifiers>

Csv file "vissen_lengteklasse.csv":

No Format
qualifierId;qualifierName
VL-0;klasse 0
VL-1;klasse 1
VL-2;klasse 2
VL-3;klasse 3
VL-4;klasse 4
VLSK-1;klasse 1 (SK)
VLSK-2;klasse 2 (SK)
VLSK-3;klasse 3 (SK)
VLSK-4;klasse 4 (SK)
VLSK-5;klasse 5 (SK)

...