xform group adding if condition to check if node exists
This post was updated on .
Could you please let me know how can we check if node not exists using xforms?
here is my template
<Item> <name></name> <desc></desc> <hourType></hourType> </Item>
So, I have added new node "hourType" in my existing template. Now the existing files (Which are generated by this template) will not have this node. So, I want to check if hourType node is not present.
For new files creation, it will be present for old node will not be present.
<xforms:group relevant="if (condition to check if node not present) then . else () " ref="if (condition to check if node not present) then . else () ">