Skip to main content
Participant
May 9, 2018
Question

Populate TableCell with an attribute value

  • May 9, 2018
  • 1 reply
  • 549 views

When dealing with a regular Element Container in my EDD, in order to achieve some flexibility, I have frequently resorted to inserting attributes' value into Container's Prefix rules as follows Prefix:<$attribute[myattribute]>.

Now I am in a TableCell Element and the typical Container's rules (e.g. Prefix, Suffix, First/LastParagraphRules) are not available.

Any suggestions on how populate a TableCell with an attribute value are appreciated!

This topic has been closed for replies.

1 reply

Legend
May 10, 2018

Hi,

Because the option is not available for a cell element definition, I guess you need to put another container element within the cell. Then you could put a prefix rule on that element. It is more common to have text wrapped in child container elements anyway. Any reason you can't do it this way?

Russ

Participant
May 10, 2018

Thanks Russ,

That is mainly to keep complexity of post-prod conversion down. My DTD element for the cell doesn't allow content. The value to display on the page can be assigned to an attribute. Using another element, would complicate the transformation. It's easier to just go straight for the element's payload and then transform it to the attribute where it belongs.