I’ve searched for renaming an XML node to a string. I have found examples of strings within XML to Nodes but not the other way.
Is it possible to do the following
<par>
<run> Some text <break/> </run>
</par>
<par>
<run> some text with no carraige return</run>
</par>
To:
<par>
<run> Some text </run>
</par>
Many thanks in advance for any replies.
Dono
Certainly that’s possible. Just use an identity transform and handle
<break>specially. Instead of copying it using<xsl:copy>, output any text you like:I you want the literal output
you can usedisable-output-escaping, likeHowever, this is an optional feature and not guaranteed to be supported by any XSLT processor.