I am trying to transform single attribute to an element. The XSL I use is :
<xsl:template match="TextView/@*">
<xsl:element name="{name()}">
<xsl:value-of select="."/>
</xsl:element>
</xsl:template>
my xml:
<TextView
android:id="@+id/ti"
style="@style/HTxt"
android:text="@string/ti"
custom:attribute="name" />
The above XSL transforms all the attributes to elements. But I want to transform only the 'custom:attribute' and ignore the others. How can I achieve this? Thanks in advance.