format-and-indent nukes trailing PI or comment

Using "XML Editor 11.0, build 2009101212", I find that choosing Document > XML Document > Format and Indent (actually, pressing cmd-shift-P) deletes any and all comments and processing instructions that occur after the root element end tag. (And per production 1 of the XML Spec, they're allowed. But even if they weren't, they shouldn't be summarily deleted! :-) Apologies if this is a known bug that has already been reported.

Hi Syd, Thanks! We made important changes for the next version (11.1) on the format and indent action. oXygen will use schema (DTD, XML Schema, Relax NG) information during the format and indent. The good news is that during this process the issue you mention got fixed, I cannot reproduce it with the current development stream. Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Syd Bauman wrote:
Using "XML Editor 11.0, build 2009101212", I find that choosing Document > XML Document > Format and Indent (actually, pressing cmd-shift-P) deletes any and all comments and processing instructions that occur after the root element end tag. (And per production 1 of the XML Spec, they're allowed. But even if they weren't, they shouldn't be summarily deleted! :-)
Apologies if this is a known bug that has already been reported. _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Excellent! You really can't ask for much better than having a bug fixed *before* it is reported. :-) But if you're working on format and indent, any chance of adding a feature so that it formats only the selected text (presuming you've selected a well-formed chunk, I suppose)? Would also love to be able to provide a list of elements somehow (perhaps via an annotation in the schema, perhaps via a list associated with a Document Type Association?) that should always start on a new line? (I'm thinking of TEI's <lb> or XHTML's <br>, here). And I wouldn't mind being able to specify elements for which leading and trailing whitespace should be trimmed. Food for thought. Anyway, thanks again both for a great product and fast bug fixes.
We made important changes for the next version (11.1) on the format and indent action. oXygen will use schema (DTD, XML Schema, Relax NG) information during the format and indent. The good news is that during this process the issue you mention got fixed, I cannot reproduce it with the current development stream.
participants (2)
-
George Cristian Bina
-
Syd Bauman