[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Saxon html includes unwanted white space in anchor tag
I would be sorry to see the ability to indent html disappear completely. It doesn't matter so much for working code, but when debugging or developing it's very useful to be able to read the output easily. I think that determining indentation on a tag-by-tag basis would be one useful way of handling this, and doesn't involve too much additional overhead. A new attribute on xsl:output, indent-elements, might be worth considering for the next XSL, and could be pioneered in Saxon. Another way of handling this would be to have a nonstandard attribute value on 'indent': no|yes|force. You could make 'yes' a null-op, and keep the existing behaviour with 'force' (or 'debug'). The other possibility, which David Carlisle mentioned, is to follow the newline-before-angle-bracket format. This is better than no indentation, but not as clear as the existing Saxon indentation. While we're at it, I would like to have a 2-space-per-level indentation, rather than 4, but now I'm probably pushing my luck... Steve 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
|