[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] pretty-printing XML
Dear XSL users, I'm looking for a way to nicely print out my XML data. I've looked at a few XSL stylesheets that claim to pretty-print XML, but they don't seem to do what I want. In particular, my XML has lots of very long comment lines, which I would like to be wrapped to a sensible line length, and indented with a hanging indent like this: <!-- blah blah blah blah blah blah --> I've tried using Emacs XML modes to wrap them using sgml-fill-element; I've tried the Physiome Languages XML Pretty Printer, the DecisionSoft online pretty printer, and others. The latter indents comments well but starts them all at the left margin, no matter how deeply they're nested. It also breaks the line whenever the comment mentions an <element> and goes back to the left margin. The former doesn't seem to indent elements based on their nesting depth. Mark Brown and Jeni Tennison's XML tree pretty printer is useful, but displays the tree rather than the XML text itself. "Tidy" doesn't seem to wrap long lines when it should. What I have had success with is using XMLSpy to print the XML, which puts it in sort of a table view. However my trial period for XMLSpy has expired. I've decided I'm willing to purchase it, if only for printing, but I thought I'd ask you folks first. What do you use for printing out your XML data, so you can look at it offline? A stylesheet? Other free software? Thanks, Lars 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
|