Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: new line

From: Joseph Kesselman <keshlam-nospam@-------.--->
To: NULL
Date: 6/4/2007 2:24:00 PM

David Schwartz wrote:
> How can I control this more precisely?

XSLT has to assume that whitespace may be meaningful in your output 
document, so in general it doesn't generate any unless you tell it to 
either by copying the newline from your source document or by explicitly 
writing one out with <xsl:text>
</xsl:text>. (Or <xsl:text>&#10;</xsl:text> or 
<xsl:text>&#xa;</xsl:text>, which use character references to express 
the line break and may be a bit easier for other folks to read.)

If you are absolutely certain that spurious whitespace won't harm your 
documents, you can also try turning on indentation in xsl:output. In 
some processors you will also have to use a nonstandard feature to tell 
the system how much indentation you want per level. (Xylem assumes 0 
unless you tell it otherwise).

If you're getting whitespace where you didn't want it, that's a 
different set of problems; normalize-space() and xsl:strip-space may be 
helpful knobs to tweak in that case.

-- 
Joe Kesselman / Beware the fury of a patient man. -- John Dryden


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent