[ http://jira.codehaus.org/browse/DOXIA-177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160371#action_160371 ]
Vincent Siveton commented on DOXIA-177: --------------------------------------- I think that we need to fix the code instead of revert it. The XhtmlBaseSink uses PrintWriter and 2 StringBuffer (one for the events and one for the current table) to write each events. IMHO an idea is to use a unique StringBuffer to collect every event and write the content in the close(): {noformat} public void close() { writer.write( buffer.toString() ); writer.close(); } {noformat} > Invalid XHTML because of wrong position of table caption > -------------------------------------------------------- > > Key: DOXIA-177 > URL: http://jira.codehaus.org/browse/DOXIA-177 > Project: Maven Doxia > Issue Type: Bug > Components: Module - Xhtml > Affects Versions: 1.0-alpha-9 > Reporter: Lukas Theussl > Assignee: Vincent Siveton > Fix For: 1.1 > > Attachments: DOXIA-177.diff > > > Currently a table caption is most of the time emitted after the table body > (mainly because apt puts the caption after the table). However, for a valid > xhtml-1.0, the table caption has to come before the first table row. > Since we don't have a mechanism yet to enforce the order of parsing events > (see DOXIA-132), and I am not sure if this can be achieved in general, any > sink should be flexible enough to deal with any reasonable order of events, > to produce some valid output. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira