views:

39

answers:

0

Hi,

Basically the thing I would like to achieve is to produce a form with some check boxes which will have their texts, default values from an xml file. As an example the block below should result 3 checkboxes (Use Sword, Use Shield, Use Spell) with the default values assigned. And when that form is posted back I can read them on the code behind of the apsx page.

<?xml version="1.0" encoding="utf-8" ?>
<root>
    <checkBox>
     <id>UseSword</id>
     <caption>Use sword</caption>
     <defaultValue>true</defaultValue>
    </checkBox>
    <checkBox>
     <id>UseShield</id>
     <caption>Use shield</caption>
     <defaultValue>false</defaultValue>
    </checkBox>
    <checkBox>
     <id>UseSpell</id>
     <caption>Use spell</caption>
     <defaultValue>false</defaultValue>
    </checkBox>
</root>

I have never worked with xslt so far. I kkow it is used to create various outputs like HTML. But I am not sure if I can also create server-side controls as an output by using XSLT templates.

Is this possible?

thanks!