I want to transform a newline (\n) from my XML document to a 'br' tag in HTML via XSL without adding extra tags.
Example:
<item name="Test">
<title>Test</title>
<text>
<p>Hello
World</p>
</text>
</item>
After the Hello is the newline -> '\n'.
What i want:
<article>
<p>Hello<br>World</p>
</article>
What i tried (not working):
<xsl:template match="\n">
<br>
<xsl:apply-templates/>
</br>
</xsl:template>
Is this possible without adding extra tags ?