Schema-aware Format and Indent
Posted: Fri Jun 22, 2007 5:38 pm
A couple of times in the past, people have posted to the forums about the problem of formatting elements that can take mixed content (according to a schema) but that have only element children in a document instance. For example, will be formatted as
unless ithe 'p' element is added as a preserve-space element in the oXygen formatting preferences.
If the XML document is associated with a schema that defines <p> as a mixed-content element, then ideally the formatter should know never to add whitespace while formatting.
Near the bottom of the thread http://www.oxygenxml.com/forum/ftopic1962.html, George suggested that schema/DTD-aware formatting might be a possibility. Is this still under consideration as a feature to add to oXygen? It would be helpful.
Code: Select all
<p><b>foo</b><i>bar</i></p>
Code: Select all
<p>
<b>foo</b>
<i>bar</i>
</p>
If the XML document is associated with a schema that defines <p> as a mixed-content element, then ideally the formatter should know never to add whitespace while formatting.
Near the bottom of the thread http://www.oxygenxml.com/forum/ftopic1962.html, George suggested that schema/DTD-aware formatting might be a possibility. Is this still under consideration as a feature to add to oXygen? It would be helpful.