Insert line breaks before processing instruction
Oxygen general issues.
-
- Posts: 18
- Joined: Fri Dec 02, 2016 4:02 pm
Insert line breaks before processing instruction
Hi,
I would like to insert a line break before each processing instruction when using the 'format and indent' option. Is this possible?
For instance my document starts as follows:
And I would like it to be like this after i hit Ctrl+Shift+P:
I suspect this is possible to configure in the preferences under "Editor/ Format / XML", but I can't figure it out. Can somebody help me with this?
Kind regards,
Hugo
I would like to insert a line break before each processing instruction when using the 'format and indent' option. Is this possible?
For instance my document starts as follows:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?><?xml-model href="file:/T:/Schemas/dtbook.sch" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?><?xml-model href="file:/T:/Schemas/dtbook-2005-3.dtd"?>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="file:/T:/Schemas/dtbook.sch" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<?xml-model href="file:/T:/Schemas/dtbook-2005-3.dtd"?>
Kind regards,
Hugo
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Insert line breaks before processing instruction
Hello,
Unfortunately that's not possible as of v21.1. The "Elements spacing" options are, as the title hints, for elements only. Only a simplified form of XPath can be used in these rules and it must indicate elements.
Editor > Format > XML Preferences, Element Spacing Section
Regards,
Adrian
Unfortunately that's not possible as of v21.1. The "Elements spacing" options are, as the title hints, for elements only. Only a simplified form of XPath can be used in these rules and it must indicate elements.
Editor > Format > XML Preferences, Element Spacing Section
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 18
- Joined: Fri Dec 02, 2016 4:02 pm
Re: Insert line breaks before processing instruction
Hi Adrian,
Thanks for the explanation, I won't look further into this option then.
My purpose was to improve the human readabilty of xml files that contain multiple processing instructions. Maybe I'll look further in the direction of XSL to solve this then.
Kind regards,
Hugo
Thanks for the explanation, I won't look further into this option then.
My purpose was to improve the human readabilty of xml files that contain multiple processing instructions. Maybe I'll look further in the direction of XSL to solve this then.
Kind regards,
Hugo
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