<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Courier;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Times New Roman \(Body CS\)";
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        font-size:10.0pt;
        font-family:"Courier New";}
span.elementtag
        {mso-style-name:elementtag;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:12.0pt">Thanks, Radu. That produced the change I need, though I limited the selector to th[style] and td[style].<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">I’m assuming that CSS declarations are acceptable content for the ‘style’ attribute based on the example in
<a href="https://jats.nlm.nih.gov/archiving/tag-library/1.2/attribute/style.html">
https://jats.nlm.nih.gov/archiving/tag-library/1.2/attribute/style.html</a>:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;font-family:Courier"><tr><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;font-family:Courier"><td style="background: lightgrey" colspan="7">Preschool</td><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:12.0pt;font-family:Courier"></tr><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">-- <o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">Michael R. Boudreau<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Electronic Publishing Technology Manager<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">The University of Chicago Press<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">1427 E. 60<sup>th</sup> Street<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Chicago, IL 60637<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">www.journals.uchicago.edu<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">oXygen-user <oxygen-user-bounces@oxygenxml.com> on behalf of Oxygen XML Editor Support (Radu Coravu) <support@oxygenxml.com><br>
<b>Date: </b>Monday, October 17, 2022 at 12:22 AM<br>
<b>To: </b>oxygen-user@oxygenxml.com <oxygen-user@oxygenxml.com><br>
<b>Subject: </b>Re: [oXygen-user] Table formatting: style attribute<o:p></o:p></span></p>
</div>
<p>Hi Michael,<o:p></o:p></p>
<p>We (the Oxygen XML developers) are not very familiar with the JATS format.<o:p></o:p></p>
<p>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:<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">*[style]{<br>
    -oxy-style:attr(style);<br>
}<o:p></o:p></p>
</blockquote>
<p class="MsoNormal">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.<o:p></o:p></p>
<p>But is this correct according to the standard?<o:p></o:p></p>
<p><a href="https://urldefense.com/v3/__https:/jats.nlm.nih.gov/archiving/tag-library/1.1d1/n-kkw2.html__;!!BpyFHLRN4TMTrA!5UqrygK3OTCVWUckqPixZjhgdhWr64We_KH3SmfdyV6hT0Iymy8clGtEVsrSv4uWqJbpsnY3eD-nYPKvVSl8mcSD$">https://jats.nlm.nih.gov/archiving/tag-library/1.1d1/n-kkw2.html</a><o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">with many of the elements within a NISO JATS table(<a href="https://urldefense.com/v3/__https:/jats.nlm.nih.gov/archiving/tag-library/1.1d1/n-by90.html__;!!BpyFHLRN4TMTrA!5UqrygK3OTCVWUckqPixZjhgdhWr64We_KH3SmfdyV6hT0Iymy8clGtEVsrSv4uWqJbpsnY3eD-nYPKvVdf-bzfM$" target="main" title="Table (NISO JATS table model)"><span class="elementtag"><table></span></a>),
 records the name of the style to be applied to the element; <o:p></o:p></p>
</blockquote>
<p class="MsoNormal">The value of the @style attribute seems in the standard to indicate more a style name which should indicate the styling.<o:p></o:p></p>
<p>Regards,<o:p></o:p></p>
<p>Radu<o:p></o:p></p>
<pre>Radu Coravu<o:p></o:p></pre>
<pre>Oxygen XML Editor<o:p></o:p></pre>
<div>
<p class="MsoNormal">On 10/16/22 04:45, Michael Boudreau wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">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.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">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—</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:Courier;color:#000096"><td</span><span style="font-family:Courier;color:#F5844C"> align</span><span style="font-family:Courier;color:#FF8040">=</span><span style="font-family:Courier;color:#993300">"center"</span><span style="font-family:Courier;color:#F5844C"> valign</span><span style="font-family:Courier;color:#FF8040">=</span><span style="font-family:Courier;color:#993300">"bottom"</span><span style="font-family:Courier;color:black"><br>
</span><span style="font-family:Courier;color:#F5844C">    style</span><span style="font-family:Courier;color:#FF8040">=</span><span style="font-family:Courier;color:#993300">"border-bottom: solid thin black; border-right: solid thin black"</span><span style="font-family:Courier;color:#000096">></span><span style="font-family:Courier;color:black">X</span><span style="font-family:Courier;color:#000096"></td></span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">—the rules I hope to see on the cell don’t appear.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">(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.)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> </span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">-- </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">Michael R. Boudreau</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Electronic Publishing Technology Manager</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">The University of Chicago Press</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">1427 E. 60<sup>th</sup> Street</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Chicago, IL 60637</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><a href="http://www.journals.uchicago.edu"><span style="color:#0563C1">www.journals.uchicago.edu</span></a></span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>oXygen-user mailing list<o:p></o:p></pre>
<pre><a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a><o:p></o:p></pre>
<pre><a href="https://urldefense.com/v3/__https:/www.oxygenxml.com/mailman/listinfo/oxygen-user__;!!BpyFHLRN4TMTrA!5UqrygK3OTCVWUckqPixZjhgdhWr64We_KH3SmfdyV6hT0Iymy8clGtEVsrSv4uWqJbpsnY3eD-nYPKvVV1SQ3yo$">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><o:p></o:p></pre>
</blockquote>
<pre><o:p> </o:p></pre>
</div>
</body>
</html>