From Rajasekar:
We have added colwidth attribute for the table 5.7 using the value with asterisk (*) as mentioned in the following URL (https://legacy-devb.cnx.org/eip-help/colspec), and the same table has been duplicated below in XML file and added colwidth using the value with point value (pt) for testing purpose. This is shown in attached screenshot. However, there is no changes in web view as well as in PDF.
Is there any minimum and maximum value for adding in colwidth attribute for both proportional measure and fixed measure. Your advise would be greatly helpful.
However, the tag <col width="x"> is deprecated in HTML5 and not supported by our transforms. The tag is converted to <col data-width="x"/>, which does not have any effect in HTML nor is supported in Webview.
Per Phil: not sure that there is a simple solution to the Issue. It probably requires:
investigating the HTML table elements and attributes
adding some number of extra attributes to the CNXML->XHTML conversion
creating a CSS file that interprets those attributes.
As an example, something like the following (but more complicated) showcases how additional attributes could be used:
From Rajasekar: We have added colwidth attribute for the table 5.7 using the value with asterisk (*) as mentioned in the following URL (https://legacy-devb.cnx.org/eip-help/colspec), and the same table has been duplicated below in XML file and added colwidth using the value with point value (pt) for testing purpose. This is shown in attached screenshot. However, there is no changes in web view as well as in PDF.
Is there any minimum and maximum value for adding in colwidth attribute for both proportional measure and fixed measure. Your advise would be greatly helpful.
Web view URL and screenshot: https://content02.cnx.org/contents/OTMco3OH@5/Ready-Set-Start-Your-Own-Busin
/EMAIL
It currently works in the PDF and not webview for Business Ethics. https://devb.cnx.org/contents/WUj6TfJ0@12.1:M-9YKJtm@15/11-Society-Enables-Corporation
`
Currently, PrinceXML supports
colgroup
andcol width
. The following markup works:where each
colwidth
is a fraction ofcols="4"
.However, the tag
<col width="x">
is deprecated in HTML5 and not supported by our transforms. The tag is converted to<col data-width="x"/>
, which does not have any effect in HTML nor is supported in Webview.Per Phil: not sure that there is a simple solution to the Issue. It probably requires:
As an example, something like the following (but more complicated) showcases how additional attributes could be used:
Decision: We will not use colwidth in webview. We will continue to use it as-needed to affect the PDF. Moving this issue to the content-managers repo.
Issue moved to Connexions/content-managers #255 via ZenHub