I have the following test xml file
Code:
<head>
<title>Management:</title>
Speed of response is vital. If air embolism is suspected, place on the left side and give 100% O<sub>2</sub>
</head>
The result should be like this
Code:
<head>
<title>Management:</title>
<p>
Speed of response is vital. If air embolism is suspected, place on the left side and give 100% O<sub>2</sub>
<p>
</head>
Basically I need to make all what's left in head a paragraph
to achieve this i'm doing this
Code:
<xsl:template match="crosshead/text()[normalize-space()]">
<p><xsl:copy-of select="."/> </p>
</xsl:template>
but the result i get is this
Code:
<head>
<title>Management:</title>
<p>Speed of response is vital. If air embolism is suspected, place on the left side and give 100% O</p>
<sub>2</sub>
</head>
I need the paragraph to end after the sub, not before the sub...any suggestions? THANKS IN ADVANCE