I've got the below XML document that I'd like to transform using XSLT.
Input:
<ABS>
<B>Heading 1</B>
text
<B>Heading 2</B>
text
<B>Heading 3</B>
text
<B>Heading 4</B>
text
</ABS>
I need to write a transformation so that each heading and it's following text is wrapped in a <sec>
tag like the below example shows.
Desired Output:
<ABS>
<sec>
<B>Heading 1</B>
text
</sec>
<sec>
<B>Heading 2</B>
text
</sec>
<sec>
<B>Heading 3</B>
text
</sec>
<sec>
<B>Heading 4</B>
text
</sec>
</ABS>
Does anybody know how I could do this using an XSLT Stylesheet?
Thanks