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." 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: excess whitespace, Kay Michael | Thread | Help Please, Ioannis Koutselas |
Applying a selection pattern on a n, Maxime Levesque | Date | Re: How to represent attribute list, Honglin Su |
Month |