Description: When emitting HTML, one may wish to have a sequence of character data replaced with an element. A common example of this would be the translation of linefeed characters to <br> tags. This demo shows a way to accomplish this transformation. Note that the "transformation" that occurs is actually the construction of a result tree fragment that contains alternating text and element nodes, based on the content of the original string.
Requirements: Linefeed to <br> Transformation Demo is an XSL document that must be applied to a source tree with an XSLT processor that can implement the following XPath functions: contains(), substring-before() and substring-after().