Some entry elements in a Dita table are formatted incorrectly:
<entry><p>Description</p></entry>
<entry><p>Description2</p><p>Description3</p><p>Description4</p>
If there is only one <p> element in a <entry> element I want to unwrap/remove the <p> element, just leaving the text. If there are more than 1 <p> elements in an <entry> element, I want to upwrap/remove just the first one. I want to leave all the other elements in the file the same.
So the output would look like:
<entry>Description</entry>
<entry>Description2<p>Description3</p><p>Description4</p>
I know this is easy but I haven't used my xslt skills in over seven years and am trying to help someone.
All help is appreciated!
Thanks,
Russ