[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
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
|