Click here to Skip to main content
15,920,217 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm new to xml and xslt. and I'm stuck with it:
I've following XML:

XML
<Parameters count="2">
		<Parameter>
			<ParamId>1</ParamId>
			<Name>accountId</Name>
			<IsRequired>1</IsRequired>
			<Type>long</Type>
			<ParamValue>123456</ParamValue>
		</Parameter>
		<Parameter>
			<ParamId>2</ParamId>
			<Name>accountholder</Name>
			<IsRequired>1</IsRequired>
			<Type>string</Type>
			<ParamValue>Robert</ParamValue>
		</Parameter>
	</Parameters>



I need to transform it into xslt so that at UI when rendered it could be dispalyed in a single DIV with each parameter as a row item. The "Name" noide being the label and the "ParamValue" node's value displayed in a editable textarea.

You help would be highly appreciated.

Thanks,
Abhishek

What I have tried:

I'm new and Couldn't decide how to proceed further.
Posted
Updated 30-Mar-16 21:58pm

1 solution

Usually, you use a XSLT file to transform an XML file to another document. You don't transform XML to XSLT.
You should read basic notions about usage of XSLT files:
XSLT - Wikipedia[^]
XSLT - W3Schools[^]
If you are new, you have to learn; there is no other way :)

Good luck.
 
Share this answer
 
Comments
Abhishek Kumar (here to help!!) 31-Mar-16 6:37am    
I Agree. I should first understand basics before posting questions or picking up new stuff. I will go through most of the trainings and hopefully I get to understand the concept and better phrase my questions in future.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900