libxslt does exactly what you want if you don't provide an indent attribute at all.
indent="yes": Let libxslt add whitespace. indent="no": Never add whitespace. no indent attribute: Add newline after top-level nodes. Nick -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org