Page 1 of 1

Refactoring attributes to inline

Posted: Mon Feb 27, 2017 1:30 pm
by dsxsfs
Hi,

I currently have:

Code: Select all

<td>
<xsl:attribute name="width">
<xsl:text>15%</xsl:text>
</xsl:attribute>

<xsl:attribute name="align">
<xsl:text>left</xsl:text>
</xsl:attribute>
I'd like to refactor this to:

Code: Select all

<td width='15%' align='left'>
Is this possible?

Thanks.

Re: Refactoring attributes to inline

Posted: Mon Feb 27, 2017 3:26 pm
by Radu
Hi,

Right now we only have the opposite refactoring action which converts attributes set on an element to xsl:attributes.
I will add an internal issue with your suggestion, maybe we can add a new refactoring action for what you want in a future Oxygen version.
We will update this forum thread when the improvement is available.

Regards,
Radu

Re: Refactoring attributes to inline

Posted: Mon Mar 19, 2018 3:17 pm
by Radu
Hi,

Just to update this thread, we released Oxygen XML Editor version 20 and it should have a special action to convert xsl:attribute's to plain attributes.

Regards,
Radu