XIML has an option to display (or not) some areas based on content in data file.
The element that used for that is eltype=”if_cond” and it is acting as “elem_group” if displayed or completely ignored otherwise.
We added more conditions recently and at the moment the full list is:
- cond_type=”eq_attr” cond_attr=”lazy” cond_val=”fox” : block displayed if attribute”lazy” of the current data node is “fox”
- cond_type=”ne_attr” cond_attr=”lazy” cond_val=”fox” : block displayed if attribute”lazy” of the current data node is NOT “fox”
- cond_type=”eq_nodeName” cond_val=”fox” : block displayed if node name of the current data node is “fox”
- cond_type=”ne_nodeName” cond_val=”fox” : block displayed if node name of the current data node is NOT “fox”
- cond_type=”isval_node” cond_path=”/*/fox” : block displayed if there is a node exist with XPath “/*/fox” relatively to the current data node
- cond_type=”isnotval_node” cond_path=”/*/fox” : block displayed if there is NO node exist with XPath “/*/fox” relatively to the current data node
- cond_type=”isval_attr” cond_attr=”lazy” : block displayed if attribute”lazy” of the current data node is exist and not empty
- cond_type=”isnotval_attr” cond_attr=”lazy” : block displayed if attribute”lazy” of the current data node is NOT exist or empty
usage example:
<el eltype="if_cond" cond_type="isval_node" cond_path="/*/cx" x="0" yrel="prevrel+10" w="100%" h="100%"> <el style="txt_pg_hdr_med" txt="Config"/> <el style="txt_pg_code" subname="cx"/> </el>






