Oxygen formatting settings
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 2
- Joined: Tue Aug 16, 2022 8:59 pm
Oxygen formatting settings
Post by Idrees Mahmood »
Hello, within the oxygen formatting settings I wish to auto add a newline before an attribute of a specific name on format.
I go to Preferences > Editor > Format > XML > Line break
I then add an option similar to the following
//TagName/@attributeName
And tick the Before option and untick the After option. This XPath correctly identifies those attributes when using the XPath/XQUERY Builder view. Though on format no newline is added.
Is there something I'm doing wrong.
Thanks in advance
I go to Preferences > Editor > Format > XML > Line break
I then add an option similar to the following
//TagName/@attributeName
And tick the Before option and untick the After option. This XPath correctly identifies those attributes when using the XPath/XQUERY Builder view. Though on format no newline is added.
Is there something I'm doing wrong.
Thanks in advance
-
- Posts: 9420
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Oxygen formatting settings
Hi,
The "Line Break" list in the Oxygen Preferences->"Editor / Format / XML" page identifies XML elements before which a line break should be added.
You seem to want to add a line break only before a specific XML attribute inside an XML element. We do not have such a setting. We have the "Break line before attribute name" setting but it applies to all XML attributes.
Regards,
Radu
The "Line Break" list in the Oxygen Preferences->"Editor / Format / XML" page identifies XML elements before which a line break should be added.
You seem to want to add a line break only before a specific XML attribute inside an XML element. We do not have such a setting. We have the "Break line before attribute name" setting but it applies to all XML attributes.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 1
- Joined: Thu Aug 10, 2023 12:18 pm
Re: Oxygen formatting settings
Hello Radu,Radu wrote: ↑Tue Jul 04, 2023 6:00 am Hi,
The "Line Break" list in the Oxygen Preferences->"Editor / Format / XML" page identifies XML elements before which a line break should be added.
You seem to want to add a line break only before a specific XML attribute inside an XML element. We do not have such a settingmyloweslife We have the "Break line before attribute name" setting but it applies to all XML attributes.
Regards,
Radu
I had the same doubt. Thank you for clarification.
Return to “General XML Questions”
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