This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]