Format/indent with structured CDATA?
Having trouble installing Oxygen? Got a bug to report? Post it all here.
Format/indent with structured CDATA?
Post by ridesmet »
Hello,
I acquired a 30 day license to evaluate oXygen XML editor. So far, everything works marvelous. I only have the following annoyance. Format/indent works except for CDATA content that is to be interpreted with its structure. For example, I am using a lot of <programlisting> tags in Docbook 4.2 documents and the content between these tags has some layout like new lines and spaced indents. Is there any way to tell oXygen to skip this tag (and alike) from formatting?
I am using the plugin version of oXygen on:
- Windows 2000 with Eclipse 2.1.1
- MacOS X 10.2.6 with Eclipse 3.0 M1
Ringo
I acquired a 30 day license to evaluate oXygen XML editor. So far, everything works marvelous. I only have the following annoyance. Format/indent works except for CDATA content that is to be interpreted with its structure. For example, I am using a lot of <programlisting> tags in Docbook 4.2 documents and the content between these tags has some layout like new lines and spaced indents. Is there any way to tell oXygen to skip this tag (and alike) from formatting?
I am using the plugin version of oXygen on:
- Windows 2000 with Eclipse 2.1.1
- MacOS X 10.2.6 with Eclipse 3.0 M1
Ringo
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi,
The current solution is to use a CDATA section to mark the programlisting content, something like:
An alternative is to use xml:space="preserve" attribute on the programlisting element but unfortunatelly Docbook does not support this attribute and you will get validation errors. There is a feature request for Docbook with exactly this enhancement, see it here.
We have an enhancement entry on our bugzilla to allow the user to configure a set of elements whose spaces should be preserved on pretty print.
Best Regards,
George
The current solution is to use a CDATA section to mark the programlisting content, something like:
Code: Select all
<programlisting><![CDATA[
your program listing here...
]]>
</programlisting>
We have an enhancement entry on our bugzilla to allow the user to configure a set of elements whose spaces should be preserved on pretty print.
Best Regards,
George
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