Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

XML Cell shading

New Here ,
Jan 25, 2010 Jan 25, 2010

Hallo at all,

it's possible to control the shading property of a cell via xml?

Example:

<?xml version="1.0" encoding="utf-8"?>

...

...

...

<table>

<tablebody>
<tablerow>
  <tablecell shading=??background color??>A</tablecell>
  <tablecell>B</tablecell>
  <tablecell>C</tablecell>
</tablerow>
</tablebody>

</table>

...

...

...

Thanks

TOPICS
Structured
888
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jan 25, 2010 Jan 25, 2010

aieiebrad,

You just met a limitation of the EDD formatting capabilities. To solve that wish, some programming is required. I use this approach (done with FrameScript, but could also be done with a C-Plug-in):

* a structure client which sets the shading accordingly when an XML file is opened with FrameMaker

* an event listener, that sets the shading if the attribute is changed by the user through the user interface

When installed, the behavior requires no action by the user, it is as if FrameMaker could do this trick on its own.

Better control of table properties is on the wish list for an improved EDD for a long time.

- Michael

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 05, 2010 Apr 05, 2010
LATEST

any update on this *oversight*?

i dont know anything about FrameScript. here's what I need to do:

1) from a corporate XML database publish DITA-XML to the "FrameMaker-compatible" format. (DONE!)

2) develop a structured application to let users open the XML, save-as FM document, and use within unstructured books (DONE!)

problem is, the shading information (indicated with '"@outputclass="shaded"' on a row or table) does not translate to a FM element or processing instruction or formatting instruction.

we also must support @otherprops="rotate", but that is less critical at this time because it is obvious when a table needs rotating. it is not so obvious when a cell should be shaded.

-seth

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines