| Name | Last modified | Size | Description | |
|---|---|---|---|---|
| Parent Directory | - | |||
| linefeed_to_br_demo_..> | 24-Jun-2001 21:52 | 4.8K | ||
| old_versions/ | 04-Apr-2001 13:43 | - | ||
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().