Re: [oXygen-user] Table formatting: style attribute

2022-10-16 Thread Oxygen XML Editor Support (Radu Coravu)

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( 
), 
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  and  
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—


  style="border-bottom: solid thin black; border-right: solid thin 
black">X


—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  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  and  
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 


___
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


[oXygen-user] Table formatting: style attribute

2022-10-16 Thread Michael Boudreau
Is Oxygen supposed to heed the ‘style’ attribute on  and  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—

X

—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  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  and  elements, I’m using the ‘style’ attribute instead.)

--
Michael R. Boudreau
Electronic Publishing Technology Manager
The University of Chicago Press
1427 E. 60th Street
Chicago, IL 60637
www.journals.uchicago.edu

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