Project

Profile

Help

Saxon creates empty lines

Added by Anonymous almost 20 years ago

Legacy ID: #2893862 Legacy Poster: Lukas Zapletal (lzap)

Hello, my Saxon is creating empty lines after each line. I am transforming XML to HTML. How can I stop that?


Replies (1)

RE: Saxon creates empty lines - Added by Anonymous almost 20 years ago

Legacy ID: #2894093 Legacy Poster: Michael Kay (mhkay)

Probably one newline character is being copied from the source XML, and one is being generated by specifying indent="yes" (which is the default for the HTML output method). You could use xsl:strip-space to remove the whitespace from the source document, or indent="no" to avoid adding more. Michael Kay

    (1-1/1)

    Please register to reply