RE: excess whitespace
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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format