This shows you the differences between two versions of the page.
ivac2:firdef_labelfields_xml [2015/06/15 17:33] splendor.bouman |
ivac2:firdef_labelfields_xml [2017/04/08 14:27] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== labelfields.xml ====== | ||
- | 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 | ||
- | |||
- | ^Root Element|labels|| | ||
- | ^Element|fields|| | ||
- | |||
- | ^Root Element|fields|| | ||
- | ^Element|field|| | ||
- | ^Attribute^Format^Remarks^ | ||
- | |id|string|ID of label field (see [[ivac2:firdef_labels|this list]]| | ||
- | |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.| | ||
- | |units|string|Unit to use, when options exist| | ||
- | |prefix|string|text to add to the front of the field - always visible provided field is not empty| | ||
- | |||
- | |||
- | <code xml> | ||
- | <labels> | ||
- | <fields> | ||
- | <field id="afl" tag="***" length="3" units="F"/> | ||
- | <field id="cfl" tag="cfl" length="2" units="F"/> | ||
- | <field id="cwp" tag="cwp"/> | ||
- | <field id="ades" tag="ades" length="-2"/> | ||
- | </labels> | ||
- | </fields> | ||
- | </code> | ||
- | |||
- | ''Note that this file has not been finalised, format changes may occur'' | ||
- | |||
- | ---- | ||
- | |||
- | [[ivac2:firdef|Back]] |