Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ivac2:firdef_labelfields_xml [2015/06/15 17:32]
splendor.bouman created
ivac2:firdef_labelfields_xml [2017/04/08 14:27] (current)
Line 3: Line 3:
 The labelfields.xml file defines the formatting of the fields which will be used to construct labels. Only the fields which will be used in labels need to be entered. The labelfields.xml file defines the formatting of the fields which will be used to construct labels. Only the fields which will be used in labels need to be entered.
  
-The ''​labelfields.xml''​ file is located in the ''​fir/​labels/​(name)/''​ directory+The ''​labelfields.xml''​ file is located in the ''​fir/​labels/​(name)''​ directory
  
 ^Root Element|labels|| ^Root Element|labels||
Line 11: Line 11:
 ^Element|field|| ^Element|field||
 ^Attribute^Format^Remarks^ ^Attribute^Format^Remarks^
-|id|string|ID of label field (see [[ivac2:​firdef_labels|this list]]|+|id|string|ID of label field (see [[ivac2:​firdef_labels|this list]])|
 |tag|string|text to show when the field is empty| |tag|string|text to show when the field is empty|
 |length|integer|number of characters from left. Use negative to truncate from right. Leave blank for no limit.| |length|integer|number of characters from left. Use negative to truncate from right. Leave blank for no limit.|
Line 20: Line 20:
 <code xml> <code xml>
 <​labels>​ <​labels>​
-<​fields>​ + <​fields>​ 
- <​field id="​afl"​ tag="​***"​ length="​3"​ units="​F"/>​ +  <field id="​afl"​ tag="​***"​ length="​3"​ units="​F"/>​ 
- <​field id="​cfl"​ tag="​cfl"​ length="​2"​ units="​F"/>​ +  <field id="​cfl"​ tag="​cfl"​ length="​2"​ units="​F"/>​ 
- <​field id="​cwp"​ tag="​cwp"/>​ +  <field id="​cwp"​ tag="​cwp"/>​ 
-<field id="​ades"​ tag="​ades"​ length="​-2"/>​+  <field id="​ades"​ tag="​ades"​ length="​-2"/​
 + </​fields>
 </​labels>​ </​labels>​
-</​fields>​ 
 </​code>​ </​code>​
  
 ''​Note that this file has not been finalised, format changes may occur''​ ''​Note that this file has not been finalised, format changes may occur''​
- 
----- 
- 
-[[ivac2:​firdef|Back]] 
- 
  
 ---- ----
  
 [[ivac2:​firdef|Back]] [[ivac2:​firdef|Back]]