I am trying to create a 2007 form which can be utilized by several languages. I will try and give a simplified example. But please remember I may have many countries, and many text fields all of which have this 'feature'.
I have 3 fields FormCountry, FormSite, FormTEXT
I want to create a default for the field FormTEXT. But sometimes the value to go into FormText is dependent on the Country and the Site, and sometimes it is just dependent on the Country
I have the following data from a secondary data source
DataCountry DataTEXT DataSite
England Hi 1
England Greetings 3
England Hello 2
Germany Hello
So the default value for FormTEXT is EITHER
@DataText[@DataCountry = FormCountry and @DataSite = FormSite]
OR
@DataText[@DataCountry = FormCountry]
The 'decision' about which, is purely data driven. If there is no value in DataSite then it is the second. My xml/xpath is not up to combining these two simple statements without an IF clause can anyone help ?
Thank you.