Monday, 15 February 2010

Can I create a asp.net webform -or user control- output from an XML file by using XSLT? -


Actually what I would like to achieve is to produce a form with some check boxes in which their texts will be , The default value should be an xml file with an default value assigned to 3 checkboxes (use sword, use shield, spelling, as a result of the block below). And when that form is posted back, I can read them on the code behind the APX page.

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Root & gt; & Lt; Checkbox & gt; & Lt; ID & gt; UseSword & lt; / Id & gt; & Lt; Captions & gt; Use the sword & lt; / Caption & gt; & Lt; DefaultValue & gt; True & lt; / DefaultValue & gt; & Lt; / Checkbox & gt; & Lt; Checkbox & gt; & Lt; ID & gt; UseShield & lt; / Id & gt; & Lt; Captions & gt; Use shield & lt; / Caption & gt; & Lt; DefaultValue & gt; False & lt; / DefaultValue & gt; & Lt; / Checkbox & gt; & Lt; Checkbox & gt; & Lt; ID & gt; UseSpell & lt; / Id & gt; & Lt; Captions & gt; Use spelling & lt; / Caption & gt; & Lt; DefaultValue & gt; False & lt; / DefaultValue & gt; & Lt; / Checkbox & gt; & Lt; / Root & gt;  

I have not worked with XSLT yet I have used kkow to make it different outputs like HTML

Is this possible?

Thank you!

But I'm not sure that I can also create server-side control as an output using XSLT template.


No comments:

Post a Comment