How do I write an XSLT template that takes all non “meta” and “answer” elements and deposits them into a “my_question” template? So, for example, given the below 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>
I would want the result to be
<my_question>
<para />
<para>Why?</para>
</my_question>
The identity template is your friend