Is it possible to write context rules in an EDD in such a way that Text Format rules are different based on the value of an element? I have an element in a list and I want to change the numbering format based on the value of a parent element.
Comparable structure might be:
I want to change the Autonumber format of ListItem1 and ListItem2 depending on whether the <TEXT> of FirstName="Sam" or FirstName="Dave"
No, text format rules cannot query the content of an element. Alternatives include:
1) If you are using XML, and if the element content does not have subelements, you could use XSLT to switch the content to an attribute value and then use read/write rules to querty the attribute value.
2) Use a script or plugin to format the element. An easy way to do so is use the automation to set an attribute and define the formatting for the attribute.