Schema-aware Format and Indent
Are you missing a feature? Request its implementation here.
-
- Posts: 125
- Joined: Mon Jun 09, 2003 6:02 pm
- Location: Charlottesville, Virginia USA
Schema-aware Format and Indent
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.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
The request is logged in our issue tracking system and we will consider it for a future version of oXygen. Probably it will have to look at the schema to see if the content model is mixed content or element only but the implementation is not very easy.
Regards,
Sorin
The request is logged in our issue tracking system and we will consider it for a future version of oXygen. Probably it will have to look at the schema to see if the content model is mixed content or element only but the implementation is not very easy.
Regards,
Sorin
-
- Posts: 9473
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Schema-aware Format and Indent
Hi,
Starting from Oxygen 11.2 by default the Author page only formats and indents the newly inserted/modified XML content leaving the unchanged content intact. Also, both the Author and Text pages take into account information from the associated schema when format and indent is applied.
Regards,
Radu
Starting from Oxygen 11.2 by default the Author page only formats and indents the newly inserted/modified XML content leaving the unchanged content intact. Also, both the Author and Text pages take into account information from the associated schema when format and indent is applied.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service