PI between <tr> visible in Author mode?

I have processing instructions that can appear almost anywhere in an XHTML document. This includes appearing between table rows: </tr> <?pdf stuff?> <tr> Most PIs are visible in Author mode because of the CSS rule in oXygen's 'authorDefaults.css': oxy|processing-instruction { display:-oxy-morph !important; color: rgb(139, 38, 201) !important; white-space:pre-wrap !important; border-width:0px !important; margin:0px !important; padding: 0px !important; } However, the PIs between <tr> are not visible in Author mode with <oXygen/> XML Editor 21.1, build 2019061404. Neither of these have worked for me: tbody > oxy|processing-instruction { display: table-row !important; } tbody > oxy|processing-instruction { display: table-cell !important; } (Yes, there are <tbody> parents of the PIs.) Is there a way for the PIs between <tr> to be visible (and editable) when in Author mode? Regards, Tony Graham. -- Senior Architect XML Division Antenna House, Inc. ---- Skerries, Ireland tgraham@antenna.co.jp

Hi Tony, Using our current visual rendering, there is no way for us to display the processing instructions between rows and keep the table layout. So you either change the display of the entire table to "block" in which case the processing instructions should start showing up or you keep the table layout but the processing instructions will not be shown. Regards, Radu Radu Coravu <oXygen/> XML Editor http://www.oxygenxml.com On 8/9/2019 2:39 PM, Tony Graham wrote:
I have processing instructions that can appear almost anywhere in an XHTML document. This includes appearing between table rows:
</tr> <?pdf stuff?> <tr>
Most PIs are visible in Author mode because of the CSS rule in oXygen's 'authorDefaults.css':
oxy|processing-instruction { display:-oxy-morph !important; color: rgb(139, 38, 201) !important; white-space:pre-wrap !important; border-width:0px !important; margin:0px !important; padding: 0px !important; }
However, the PIs between <tr> are not visible in Author mode with <oXygen/> XML Editor 21.1, build 2019061404.
Neither of these have worked for me:
tbody > oxy|processing-instruction { display: table-row !important; }
tbody > oxy|processing-instruction { display: table-cell !important; }
(Yes, there are <tbody> parents of the PIs.)
Is there a way for the PIs between <tr> to be visible (and editable) when in Author mode?
Regards,
Tony Graham.

On 12/08/2019 12:42, Oxygen XML Editor Support (Radu Coravu) wrote:
Using our current visual rendering, there is no way for us to display the processing instructions between rows and keep the table layout.
Thank you for the confirmation.
So you either change the display of the entire table to "block" in which case the processing instructions should start showing up or you keep the table layout but the processing instructions will not be shown.
Can you add a feature request for PIs between table rows to show in Author mode? That is seen as important at this end. Regards, Tony Graham. -- Senior Architect XML Division Antenna House, Inc. ---- Skerries, Ireland tgraham@antenna.co.jp

Hi Tony, I will add an issue for this but I can give no guarantees that this will be done. It's something quite hard to implement using our current architecture and the use cases are not very frequent. Maybe you can try as a workaround to implement some kind of side view in which the processing instructions are shown and edited when the cursor is places on a table row and then use our API to make changes to the processing instructions and update the XML document. Regards, Radu Radu Coravu <oXygen/> XML Editor http://www.oxygenxml.com On 8/12/2019 7:34 PM, Tony Graham wrote:
On 12/08/2019 12:42, Oxygen XML Editor Support (Radu Coravu) wrote:
Using our current visual rendering, there is no way for us to display the processing instructions between rows and keep the table layout.
Thank you for the confirmation.
So you either change the display of the entire table to "block" in which case the processing instructions should start showing up or you keep the table layout but the processing instructions will not be shown.
Can you add a feature request for PIs between table rows to show in Author mode? That is seen as important at this end.
Regards,
Tony Graham.

On 13/08/2019 07:14, Oxygen XML Editor Support (Radu Coravu) wrote:
I will add an issue for this but I can give no guarantees that this will be done. It's something quite hard to implement using our current architecture and the use cases are not very frequent.
Thanks anyway. I also haven't found a way to insert a PI between <tr> in Author mode.
Maybe you can try as a workaround to implement some kind of side view in which the processing instructions are shown and edited when the cursor is places on a table row and then use our API to make changes to the processing instructions and update the XML document.
We already have info-level Schematron <report> as a budget way of locating the PIs. I'll look into what can be done once the PI is selected by clicking on the little blue bar. Regards, Tony Graham. -- Senior Architect XML Division Antenna House, Inc. ---- Skerries, Ireland tgraham@antenna.co.jp

Hi Tony, About this remark:
I also haven't found a way to insert a PI between <tr> in Author mode.
That's because usually when moving inside a table the cursor moves from one row to another and does not stop between the rows. In the Oxygen Preferences->"Editor / Edit Modes / Author / Cursor Navigation" page there is a checkbox called "Quick navigation in tables" which can be disabled to allow the cursor to also be placed between rows. But I think it's best to create some kind of custom Author action based on a pre-existing operation like "InsertFragmentOperation": https://www.oxygenxml.com/doc/versions/21.1/ug-editor/topics/dg-default-auth... The action defined in the framework configuration could be called "Insert a page break processing instruction before current row". And it could be added for example to the contextual menu when you right click inside a table cell. Regards, Radu Radu Coravu <oXygen/> XML Editor http://www.oxygenxml.com On 8/13/2019 10:17 AM, Tony Graham wrote:
On 13/08/2019 07:14, Oxygen XML Editor Support (Radu Coravu) wrote:
I will add an issue for this but I can give no guarantees that this will be done. It's something quite hard to implement using our current architecture and the use cases are not very frequent.
Thanks anyway.
I also haven't found a way to insert a PI between <tr> in Author mode.
Maybe you can try as a workaround to implement some kind of side view in which the processing instructions are shown and edited when the cursor is places on a table row and then use our API to make changes to the processing instructions and update the XML document.
We already have info-level Schematron <report> as a budget way of locating the PIs. I'll look into what can be done once the PI is selected by clicking on the little blue bar.
Regards,
Tony Graham.
participants (2)
-
Oxygen XML Editor Support (Radu Coravu)
-
Tony Graham