Hi Michael,

We (the Oxygen XML developers) are not very familiar with the JATS format.

Oxygen uses CSS to render the JATS content in the Author visual editing mode. If for example you open the CSS "OXYGEN_INSTALL_DIR/frameworks/jats/lib/author-css/authoring-extension.css" CSS and add this selector to it:

*[style]{
    -oxy-style:attr(style);
}
then save your CSS and re-open your JATS file, Oxygen's visual editing should interpret the small CSS snippet value from any element which has a "style" attribute.

But is this correct according to the standard?

https://jats.nlm.nih.gov/archiving/tag-library/1.1d1/n-kkw2.html

with many of the elements within a NISO JATS table(<table> <https://jats.nlm.nih.gov/archiving/tag-library/1.1d1/n-by90.html>), records the name of the style to be applied to the element;
The value of the @style attribute seems in the standard to indicate more a style name which should indicate the styling.

Regards,

Radu

Radu Coravu
Oxygen XML Editor

On 10/16/22 04:45, Michael Boudreau wrote:

Is Oxygen supposed to heed the ‘style’ attribute on <th> and <td> elements in the JATS table model when it’s rendering tables? It doesn’t appear to be doing so.

I’m using Oxygen 25.0 on macOS X 12.6. I’m creating tables using the JATS table model in a framework that uses CSS files copied from the JATSKit framework. When I add a style attribute like this—

<td align="center" valign="bottom"
  style="border-bottom: solid thin black; border-right: solid thin black">X</td>

—the rules I hope to see on the cell don’t appear.

(For background: I’m creating tables in the JATS model by converting tables from the OASIS model. In the OASIS model, the <entry> element has ‘colsep’ and ‘rowsep’ attributes to make a rule appear on the right or bottom edge of the table cell. Since there are no direct analogues of those attributes in the JATS model <th> and <td> elements, I’m using the ‘style’ attribute instead.)

--

Michael R. Boudreau

Electronic Publishing Technology Manager

The University of Chicago Press

1427 E. 60^th Street

Chicago, IL 60637

www.journals.uchicago.edu <http://www.journals.uchicago.edu>


_______________________________________________
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user

Reply via email to