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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Operation of indent="yes", Michael Kay | Thread | Re: [xsl] Operation of indent="yes", Jeni Tennison |
Re: [xsl] merging generic elements , David Carlisle | Date | Re: [xsl] merging generic elements , David Carlisle |
Month |