Transform XML to XML using xslt

phazed

New Member
As i said earlier I have started learning XSLT When I am working on that I getting an wrong type of XML FormatInput\[code\]<?xml version="1.0" encoding="ISO-8859-1"?><testingconfig note-ref="no"><access-panel>113AL</access-panel><access-panel>119AL</access-panel></testingcongif>\[/code\]Output\[code\]<?xml version="1.0" encoding="ISO-8859-1"?><testingconfig><panel><panelid>113AL</panelid></panel> <panel><panelid>119AL</panelid></panel> </testingconfig>\[/code\]My XSL\[code\]<?xml version="1.0" encoding="ISO-8859-1"?><testingconfig> <xsl:for-each select="testingconfig"> <panel> <panelid> <xsl:value-of select="*"/> </panelid> </panel></xsl:for-each></testingconfig>\[/code\]Out put for this is \[code\]<testingconfig><panel> <panelid> 113AL 119AL </panelid></panel></testingconfig>\[/code\]Can any one help me here where i am doing mistake and pls help me how to do it in XSLT 2.0 Pls help me Thanks & RegardsM
 
Back
Top