Refactoring attributes to inline

Here should go questions about transforming XML with XSLT and FOP.
dsxsfs
Posts: 7
Joined: Wed Jan 11, 2017 12:26 pm

Refactoring attributes to inline

Post 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.
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Refactoring attributes to inline

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Refactoring attributes to inline

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply