I have the following xml fragment:
<headline>Head1</headline>
<text>Text1</text>
<image>Dummy</image>
<headline>Head2</headline>
<text>Text2</text>
<preview>Abc</preview>
This fragment should be transformed to:
<paragraph>
<headline>Head1</headline>
<text>Text1</text>
<image>Dummy</image>
</paragraph>
<paragraph>
<headline>Head2</headline>
<text>Text2</text>
<preview>Abc</preview>
</paragraph>
So all tags between two headline-tags should be merged into one paragraph-tag.
Could please anybody give me a hint. I have no clue how something like that can be done using XSL.