Complex context rules in EDD (for inherited properties)
Hi
I was checking my answer to another question in this forum about table properties when I discovered that my recollection of how certain properties worked was faulty. This has revealed an omission in our EDD which I'd like to rectify, but the reference guide hasn't got enough detail to help me.
Our table schema allows for cell align and valign attributes to be specified at any level (th, tb, tf, tr, td) and inherited by descendant elements. Thus the text alignment of a table cell will be governed by the cell's align attribute/property, if that is omitted then it will use the row's align property, if that is omitted it will use the th/tb/tf align property, and so forth.
The reference guide notes that the align and valign attributes are automatically translated by Framemaker without needing to be specified in read/write rules, but it also notes that when tables are displayed in the document view the cells are not aligned automatically; "you must write format rules to use these attributes to format a table".
So that is what I am trying to do. It's easy to respect the cell's own attribute: 'context rule, if context is [align = "center"]' etc., but what I want is something like XPath's ancestor axis: off the top of my head it would be something like ancestor-or-self::*[layout][1]/@layout = "center"
Can an EDD manage contexts like this? If not, is there anything better than a huge series of hierarchical context tests to achieve the same thing?
Cheers
T
