Translate

Archives

Image of RHCE Red Hat Certified Engineer Linux Study Guide (Exam RH302) (Certification Press)
Image of Linux Kernel Development (3rd Edition)
Image of Advanced Programming in the UNIX Environment, Second Edition (Addison-Wesley Professional Computing Series)
Image of Android Wireless Application Development

XSL Recognizing Newlines

Suppose you want to convert the contents of an element into HTML making each line of text a separate paragraph. To do this you need to have a way of splitting the element text into a series of strings using newline (‘/n’) as the delimiter. This post demonstrates how to do this using both XSLT1 and XSLT2 processors.