Subject: RE: [xsl] Collapsing run-on tag chains not working in saxon or xa lan From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 02 Nov 2004 12:50:20 -0500 |
There is a utility called msxsl.exe that can be used to strip or preserve whitespace (it's not a new tool, and works as a wrapper for MSXML 3 and 4):
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxml/html/ msxsl.asp
Check for the -xw option:
"White Space Stripping (-xw Option) The -xw option instructs MSXSL to strip non-significant white space from the input XML document during the load phase (preserveWhitespace set to False). Enabling this option can lower memory usage and improve transformation performance while, in most cases, creating equivalent output."
Personally, in some cases, I don't see a problem in stripping the white space; in fact, in the HTML world, stripping white space can even optimize the way browsers renders a given page. Extra whitespace between elements (and carriage returns) can introduce differences at the pixel render position level.
That's why we prefer to use long one-liners without whitespace and CRs - ugly, but necessary.
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Collapsing run-on tag cha, David Carlisle | Thread | RE: [xsl] Collapsing run-on tag cha, Pieter Reint Siegers |
RE: [xsl] Collapsing run-on tag cha, Pieter Reint Siegers | Date | RE: [xsl] Collapsing run-on tag cha, Babos, Andras |
Month |