This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi i am using xml and xsl to display characters in multiple lines
the text content is like this "mm\r\nkk\r\njj" but i am unable to display this characters in multiple lines like below in the browser
actually in our java class we are creating textnode for the above text using document object like doc.createTextnode("mm\r\nkk\r\njj")
in xsl we are reading this data as <xsl:value-of select="text()"/>
could anybody suggest me how to display characters in multiple lines using xsl.
I can't quite tell what your question is. It seems that you are producing HTML, but you didn't say that. And then it seems that you want the newline characters to be converted to elements, so that they appear as newlines in the browser. Is that correct?
But that's one of the commonest questions about XSLT. It has its own entry in the XSLT FAQ, here: