所要输入的xml的文件为:
<input>
 <DER_command starting_time="0">
   <mood_layer>
     <tension_level>
        <emotion_name>happiness</emotion_name>
        <attack_duration>0</attack_duration>
        <sustain_duration>0</sustain_duration>
        <decay_duration>3000</decay_duration>
        <peak_intensity>65</peak_intensity>
     </tension_level>
     <energy_level>65</energy_level>
    </mood_layer>
 </DER_command>
 <text>
  <simplified_emotional_stimulus emo_name="happiness" intensity="40" />
 </text>
 <silence duration="0.5" />
 <text>
  <decla_signal comm_func_name="personal reaction" intensity="50" added_time="1">
    Welcome to the Elzware Chatterbot.  Yhaken is the name & yacking the
   game.<p>What can I help you with today ?
  </decla_signal>
 </text>
</input> 其中   
  <emotion_name>happiness</emotion_name>
  <attack_duration>0</attack_duration>
  <sustain_duration>0</sustain_duration>
  <decay_duration>3000</decay_duration>
  <peak_intensity>65</peak_intensity>
  <decla_signal comm_func_name="personal reaction" intensity="50" added_time="1">
    Welcome to the Elzware Chatterbot.  Yhaken is the name & yacking the
   game.<p>What can I help you with today ?
  </decla_signal>  这些标签中的值是可以根据传入的一组变量生成的

解决方案 »

  1.   

    你的需求太含糊
    再詳細些:比如你說的變量指的是何變量,變量來源?數據庫或者其它 XML?
      

  2.   

    to  cityhunter172(寒羽枫):我得意思是happiness,0,0,3000,65,和Welcome to the Elzware Chatterbot.  Yhaken is the name & yacking the game.<p>What can I help you with today ?
    这些值是变化的,至于这些值来自哪儿你不必关心
    只要把上面那个xml写出来就行了
      

  3.   

    楼主到底要输入还是输出啊?给个操作的例子你看吧:http://community.csdn.net/Expert/topic/3644/3644724.xml?temp=8.356875E-02
      

  4.   

    那你干脆說:
    我要把上述 XML 轉換成 HTML ,xslt 該怎么寫
    不就得了