I am not sure whether the title clearly explains my problem, will try to include as much details I can.
I need to convert below xml to a properly formatted one using Xslt 1, so that I can deserialize it to a .net type.
Source XML
<ax21:result type="test.ws.Result">
<ax21:columnNames>fileName</ax21:columnNames>
<ax21:columnNames>lockedState</ax21:columnNames>
<ax21:columnNames>currentLockOwner</ax21:columnNames>
<ax21:columnNames>UUID</ax21:columnNames>
<ax21:resultData>Test1.doc</ax21:resultData>
<ax21:resultData>true</ax21:resultData>
<ax21:resultData>analyst</ax21:resultData>
<ax21:resultData>f48f0450-9ecc-4a44-b063-898d9d72d112</ax21:resultData>
<ax21:resultData>Test2.doc</ax21:resultData>
<ax21:resultData>false</ax21:resultData>
<ax21:resultData/>
<ax21:resultData>f48f0450-9ecc-4a44-b063-898d9d72d112</ax21:resultData>
<ax21:resultData>Test3.doc</ax21:resultData>
<ax21:resultData>true</ax21:resultData>
<ax21:resultData>analyst</ax21:resultData>
<ax21:resultData>f48f0450-9ecc-4a44-b063-898d9d72d112</ax21:resultData>
<ax21:resultData>Test4.doc</ax21:resultData>
<ax21:resultData>false</ax21:resultData>
<ax21:resultData/>
<ax21:resultData>f48f0450-9ecc-4a44-b063-898d9d72d112</ax21:resultData>
</ax21:result>
Target XML
<result>
<item>
<fileName>Test1.doc</fileName>
<lockedState>true</lockedState>
<currentLockOwner>analyst</currentLockOwner>
<UUID>f48f0450-9ecc-4a44-b063-898d9d72d112</UUID>
</item>
<item>
<fileName>Test2.doc</fileName>
<lockedState>true</lockedState>
<currentLockOwner>analyst</currentLockOwner>
<UUID>f48f0450-9ecc-4a44-b063-898d9d72d112</UUID>
</item>
<item>
<fileName>Test2.doc</fileName>
<lockedState>true</lockedState>
<currentLockOwner>analyst</currentLockOwner>
<UUID>f48f0450-9ecc-4a44-b063-898d9d72d112</UUID>
</item>
</result>
Can this be done using xslt? If yes, pls post a link or a sample xslt for me to try.
I am using .net 2.0, c#, XSLT 1.0