Formatting Options
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 2
- Joined: Tue Aug 16, 2022 7:41 pm
Formatting Options
Hello, is there a way to edit formatting options to prevent the following:
from being formatted as follows
Code: Select all
<Tag name="Test"><Value><Test/></Value></Tag>
Code: Select all
<Tag name="Test"><Value>
<Test/>
</Value></Tag>
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Formatting Options
Hi,
When it comes to considering an element space-preserve and not chancing it at all during "Format and indent", Oxygen also looks in the DTD/schema associated to the XML to see if the element has an xml:space="preserve" default attribute value set in the schema. So if you control the contents of the DTD/schema referenced by the XML, you could also mark the element in the schema as having the xml:space="preserve" default attribute value.
Regards,
Radu
When it comes to considering an element space-preserve and not chancing it at all during "Format and indent", Oxygen also looks in the DTD/schema associated to the XML to see if the element has an xml:space="preserve" default attribute value set in the schema. So if you control the contents of the DTD/schema referenced by the XML, you could also mark the element in the schema as having the xml:space="preserve" default attribute value.
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)
- ↳ 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