I'm a beginner in XSLT programming. I've got the task to transform the following xml:
<Test>TestA::test1</Test>
<Test>TestA::test2</Test>
<Test>TestB::test3</Test>
<Test>TestB::test4</Test>
The output xml shall look like this:
<Class id="TestA">
<Method id="test1"/>
<Method id="test2"/>
</Class>
<Class id="TestB">
<Method id="test3"/>
<Method id="test4"/>
</Class>
The input xml contains the names of CppUnit test cases in C++ style (pattern Class::Method). I've tried a lot of different approaches and read myriad of stackoverflow threds, but couldn't find a solution.
I have to solve the problem using XSLT 1.0.
Thanks in advance, mexl