xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Operation of indent="yes" in Saxon 6.5.2 vs MSXML


Subject: RE: [xsl] Operation of indent="yes" in Saxon 6.5.2 vs MSXML
From: "Michael Leditschke" <mike@xxxxxxxxxxx>
Date: Wed, 26 Jun 2002 18:45:25 +1000

Michael Kay wrote:

> However, using indent="yes" to add whitespace just so that another phase
> of transformation can remove it is incredibly wasteful. The indent="yes"
> option should really be used only when the XML is intended for human
> consumption, otherwise it's just a waste of processor cycles.

In the final production system, I would agree that using indent="yes" on
intermediate stages would be wasteful. However, in a development environment
I find it helpful to look at the results, and that isn't helped if you
have a one line 2 Mb text file. After all, what I'm asking for was supposed
to
be one of the goals of XML

"6. XML documents should be human-legible and reasonably clear."

Wasteing a few MIPS to reduce the time to find a bug sounds like a
reasonable trade-off to me.

Am I correct in assuming you don't look at the whitespace already present
between tags before deciding what whitespace to add?

Thanks
Michael




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



Current Thread
Keywords
xml
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor