Subject:Attributes to element transformation Author:Anand V Date:04 Jan 2008 07:32 AM Originally Posted: 04 Jan 2008 07:30 AM
I am trying to transform an xml with attributes to element. Although i have been successfully in doing it, i am not able to restrict it to the elements i want because of some namespace issues.
Can someone tell me how to do this only for element <z:row />
In stylesheet if i give <xsl:template match="@*">, i get an Transformation exception
The reason why it fails with a @* template is because you are creating elements even in places where there should be no elements, eg multiple elements at root level or elements before attributes in an element.