This is a recipe using a node from an xml document called text to replace a string within it.
<xsl:choose>
<xsl:when test="contains(text, 'xyz')">
<xsl:element name="text">
<xsl:value-of select="substring-before(text, 'xyz')"/>
abc
<xsl:value-of select="substring-after(text, 'xyz')"/>
</xsl:element>
</xsl:when>
</xsl:choose>
...is it possible to detect linebreak insted of 'xyz' like this?
|