Refactoring attributes to inline

Here should go questions about transforming XML with XSLT and FOP.
dsxsfs
Posts: 2

Refactoring attributes to inline

Mon Feb 27, 2017 1:30 pm

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: 5090

Re: Refactoring attributes to inline

Mon Feb 27, 2017 3:26 pm

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

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 0 guests