我有以下两个 xml 文件:
<questionnaire>
<questionnaireid>1</questionnaire>
<questionnairename>sample questionnaire</questionnairename>
<questions>
<question qid="1" >
<qid>1</qid>
<questiondesc>Q1) Enter some free text</questiondesc>
<typeid>2</typeid>
<required>1</required>
<parentquestion></parentquestion>
</question>
<question qid="2" >
<qid>2</qid>
<questiondesc>Q2) Select any of the choices</questiondesc>
<typeid>6</typeid>
<required>1</required>
<parentquestion></parentquestion>
<choices>
<choice>Choice1</choice>
<choice>Choice2</choice>
<choice>Choice3</choice>
</choices>
</question>
</questions>
<questionnaireresponse>
<questionnaireid>1</questionnaire>
<userid>1234</userid>
<responses>
<response qid="1">
<answers>
<answer>This is some text</answer>
</answers>
</response>
<response qid="2">
<answers>
<answer>Choice 2</answer>
</answers>
</response>
</responses>
</questionnaireresponse>
您如何使用 xslt 将此用户的响应添加到问题文件并显示为 HTML 表单,因此在上面的示例中,文本框将填充“这是一些文本”并且下拉菜单将选择“选择 2”?
一些实现上述内容的示例 xslt 对入门非常有帮助。理想情况下,我想在 asp.net 中执行此操作