preventing processing of codeblock
Oxygen general issues.
-
- Posts: 2
- Joined: Tue Nov 02, 2010 9:09 pm
preventing processing of codeblock
How do I prevent Oxygen from processing XML code in a codeblock element? I want to be able to put anything in the codeblock, but currently Oxygen is requiring that I use escape characters for left bracket and ampersand.
Steven Grayson
Steven Grayson
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Re: preventing processing of codeblock
It is not a requirement of oXygen, it is an XML requirement. You cannot enter < and & directly in a text, you need to XML escape that. You can use a CDATA section and inside that you can enter < and & without escaping. So for example instead of
you can write
Hope that helps,
George
Code: Select all
<codeblock>Sample text containing < and &</codeblock>
Code: Select all
<codeblock><![CDATA[Sample text containing < and &]]></codeblock>
George
George Cristian Bina
-
- Posts: 2
- Joined: Tue Nov 02, 2010 9:09 pm
Re: preventing processing of codeblock
Thank you, George! That's exactly what I was looking for. I built the project as both pdf and html and the code can still be copied successfully without being pasted as a comment. I appreciate the help!
Steven Grayson
Steven Grayson
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