XML – XSL Removes a newline from text

I want to delete all line breaks after the text, see the attachment “

Unnecessary line breaks, as shown in notepadd:

< p>alt text http://img13.imageshack.us/img13/9803/clcflinebreak.png

This is what I have so far:

< xsl:template match="p">


Any ideas? Thank you!

If you use conversion to generate HTML output, The easiest way is usually:

Normalize-space strip leading and trailing spaces, and replace multiple blank characters in the string with a single space.

To accurately delete the trailing CR/LF pairs:








I want to delete the line breaks after all the text, see the attachment "

Unnecessary line breaks, as shown in notepadd:

alt text http://img13.imageshack.us/img13/9803/clcflinebreak.png

This is what I have so far:




Any ideas? Thanks!

If you use conversion to generate HTML output, the easiest way is usually:

 

The operation of normalize-space strip leading and trailing spaces, and replace multiple blank characters in a string with a single space.< /p>

To accurately delete the trailing CR/LF pair:








Leave a Comment

Your email address will not be published.