EDD context rules for any ancestors with certain attribute
Hi all,
I am new to EDD programming, I understand the use of wildcard * in the context rule, like * < chapter.
But what if I want to add a context rule based on if any ancestor has attribute @11017538="yes", would something like the following work?
Else, if context is: * [change = ”yes”]
Text range.
Font properties
Color: Forest Green
I have tried the above, importing the EDD seems fine (i.e. FM did not complain it been invalid), but it did not have any effect to the rendered document.
Is there anyway in the EDD that allow me to do this?
Because the above method did not work for me, so I thought I will explicitly list all the possible ancestors that may have @11017538=yes, so I tried the following context rule:
Else, if context is: * < (chapter | codechapter | codechapterdivision | codechaptersubdivision | part | division | subdivision | clause | subclause | schedule | subschedule) [change = ”yes”]
Text range.
Font properties
Color: Forest Green
Surprisingly, this did not work either. However, when I reduced the list to just * < (chapter | clause)[change = ”yes”], FM renders the document correctly (i.e. the text becomes green).
Thanks in advance for your help.
Simon.
================================
Just to add that I am using FM 2017 release, version 14.
Message was edited by: Simon
