This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Operation of indent="yes" in Saxon 6.5.2 vs MSXML
- From: "Michael Leditschke" <mike at ammd dot com dot au>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 26 Jun 2002 18:45:25 +1000
- Subject: RE: [xsl] Operation of indent="yes" in Saxon 6.5.2 vs MSXML
- Reply-to: xsl-list at lists dot mulberrytech dot com
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