Issue Details (XML | Word | Printable)

Key: DOXIA-255
Type: Improvement Improvement
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Vincent Siveton
Reporter: Vincent Siveton
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven Doxia

Allow pretty printing for XML based sinks

Created: 28/Sep/08 06:29 AM   Updated: 01/Oct/08 07:39 AM   Resolved: 01/Oct/08 07:39 AM
Component/s: Module - Docbook Simple, Module - Fml, Module - FO, Module - Xdoc, Module - Xhtml
Affects Version/s: 1.1
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. File DOXIA-255_doxia-sitetools.diff (4 kB)
2. File DOXIA-255_doxia.diff (22 kB)



 Description  « Hide

The actual XhtmlBaseSink writes XML elements without any formatting. It could be improved to include PrettyPrintXMLWriter.



Vincent Siveton added a comment - 28/Sep/08 08:37 AM

This is the implementation of PrettyPrintXMLWriter for the XhtmlBaseSink.
Some comments:

  • tests are updated to reflect EOL and space (ie <tag/> instead of <tag SPACE />)
  • depends on plexus-utils:1.5.7-SNAPSHOT
  • It will be a similar impl for AbstractXmlSink, but actually a lot of changes is needed.

Vincent Siveton added a comment - 01/Oct/08 07:39 AM

After some discussions with Lukas, we decided that pretty printing should be out of the core modules. I added a faq in r700752.