Quantcast
Channel: New Lines to HTML Line Breaks Using XSLT - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Tim C for New Lines to HTML Line Breaks Using XSLT

For your XSLT 1.0 solution, I think all you need is some xsl:if tests to test if there is non-white space text before and after the current line you are handling. Try this XSLT <xsl:stylesheet...

View Article



Answer by Valdi_Bo for New Lines to HTML Line Breaks Using XSLT

Try the following script: <?xml version="1.0" encoding="UTF-8" ?> <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output method="xml"...

View Article

New Lines to HTML Line Breaks Using XSLT

I have the following XML: <RichText> Text Text Text </RichText> I would like to output the following HTML using XSLT 1.0 (2.0 if I really really have to): <p> Text<br/>...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images