My desire is such - to define a UI of some sort by XML (similar to xaml with c#).
I have a known xml elements / attributes and order.
I also have another xml, that contains data.
I wish to use conditions in my ui.xml that defines attribute's values according to the data.xml.
example:
ui.xml:
Expand|Select|Wrap|Line Numbers
- <root>
- <item title="if data/gender = 'female': Ms.; else: Mr." />
- </root>
Expand|Select|Wrap|Line Numbers
- <data>
- <gender>male</gender>
- </data>
result.xml:
Expand|Select|Wrap|Line Numbers
- <root>
- <item title="Mr." />
- </root>
Of course, the language of the condition is something I made up, and that is what I seek. Something with a known interpreter / behavior that I can rely on, instead of doing something from scratch.
any help would be very appreciated.
Thanks.