ANNOUNCE: XSLT Newline to <br> Demo
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 newline characters to <br> tags. This demo shows a way to accomplish this transformation using XSLT. 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: Newline to <br> Transformation Demo is an XSL document that must be applied to a source tree with an XSLT processor. The XSLT processor must be compliant with the August 13 XSLT 1.0 Working Draft and must implement the contains(), substring-before() and substring-after() functions. It has been tested with James Clark's XT (19990822 version). Get it at http://www.skew.org/xml/ (I would post it here, but I don't feel like reformatting it to fit in less than 80 columns) XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format