[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: excess whitespace

Subject: RE: excess whitespace
From: "Robert C. Lyons" <boblyons@xxxxxxxxxx>
Date: Fri, 16 Jul 1999 14:45:42 -0400
re excess
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."

Chris,

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

For example,

<doc>
    <record>
        <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>
    </record>
</doc>

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

------
Bob Lyons
EC Consultant
Unidex Inc.
1-732-975-9877
boblyons@xxxxxxxxxx
http://www.unidex.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.