RE: excess whitespace

Subject: RE: excess whitespace
From: "Robert C. Lyons" <boblyons@xxxxxxxxxx>
Date: Fri, 16 Jul 1999 14:45:42 -0400
Chris wrote:
	"But there were absolutely no line terminators within any of
	the elements in my XML document, so I don't understand where
	they were coming from."


Perhaps your non-leaf elements contain line terminators,
even though your leaf elements do not.

For example,

        <field_1>value containing no line terminators</field_1>
        <field_2>value containing no line terminators</field_2>
        <field_3>value containing no line terminators</field_3>

In this example, the record element contains line terminators, 
but the field_N elements do not. Such white space is often
included in an XML doc, in order to make the doc more readable.
The XML parser passes the line terminators to the application
(e.g., the XSL processor).

By the way, the example stylesheet that I sent you will work without the
indent-result="no" attribute.


Bob Lyons
EC Consultant
Unidex Inc.

 XSL-List info and archive:

Current Thread