I wish to find some leads here.
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:
data.xml:
So, in my very simple example, I want to somehow mix the two and get:
result.xml:
I know xsl is a known language for conditions on xml, that outputs html or xml (just by reading in the internet, not by known experience).
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.
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:
Code:
<root> <item title="if data/gender = 'female': Ms.; else: Mr." /> </root>
Code:
<data> <gender>male</gender> </data>
result.xml:
Code:
<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.
Comment