如何编写一个 XSLT 模板,它将所有非“元”和“答案”元素放入“my_question”模板中?因此,例如,给定以下 XML ...
<question>
<meta>
...
</meta>
<para />
<para>Why?</para>
<answer weight="1" correctness="0">
...
</answer>
<answer weight="1" correctness="0">
...
</answer>
<answer weight="1" correctness="100">
...
</answer>
<answer weight="1" correctness="0">
...
</answer>
</question>
我希望结果是
<my_question>
<para />
<para>Why?</para>
</my_question>