Fixing long lines?
Oxygen general issues.
-
- Posts: 5
- Joined: Wed Jan 19, 2011 5:27 am
Fixing long lines?
When I export an XML from InDesign, I'm prompted with this when I open it in Oxygen:
Is there a way for Oxygen able to take the giant line of code and automatically structure the file?This document contains long lines which may affect performance when opened in the text editor.The longest line contains 113,292 characters.
This warning is displayed only for documents with lines exceeding 15,000 characters (see the Editor -> Open/Save page from Preferences).
Some of the editing features will be disabled.
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Fixing long lines?
Hi,
In the Oxygen Preferences->Editor / Format page you can check the checkbox Format and indent the document on open before opening the file which comes on a single line. Then uncheck it again if no longer necessary.
Regards,
Radu
In the Oxygen Preferences->Editor / Format page you can check the checkbox Format and indent the document on open before opening the file which comes on a single line. Then uncheck it again if no longer necessary.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 5
- Joined: Wed Jan 19, 2011 5:27 am
Re: Fixing long lines?
Thank you Radu, that worked.
On a second note, is there a way for Oxygen to not transform characters like:
apostrophe transforms into '
right side single quotation mark transforms into ’
On a second note, is there a way for Oxygen to not transform characters like:
apostrophe transforms into '
right side single quotation mark transforms into ’
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Fixing long lines?
Hi,
At what stage do you think Oxygen transforms the characters?
It does not do this when Format and indent is applied.
Do you mean when performing XSLT transformations? But I could not reproduce this either.
It probably depends on the encoding of the output file, probably the XSLT transformer detects that some characters in the XML are over the range and escapes them.
Regards,
Radu
At what stage do you think Oxygen transforms the characters?
It does not do this when Format and indent is applied.
Do you mean when performing XSLT transformations? But I could not reproduce this either.
It probably depends on the encoding of the output file, probably the XSLT transformer detects that some characters in the XML are over the range and escapes them.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Fixing long lines?
Hi,
What XSLT transformer type are you using in the transformation scenario? Saxon 6, 9 or Xalan?
In the XSLT stylesheet do you have an encoding set for the output file like:
?
As I said if you're specifying an encoding in which the characters cannot be written they will be automatically escaped by the XSLT processor.
Regards,
Radu
What XSLT transformer type are you using in the transformation scenario? Saxon 6, 9 or Xalan?
In the XSLT stylesheet do you have an encoding set for the output file like:
Code: Select all
<xsl:output method="xml" encoding="CP857"/>
As I said if you're specifying an encoding in which the characters cannot be written they will be automatically escaped by the XSLT processor.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 5
- Joined: Wed Jan 19, 2011 5:27 am
Re: Fixing long lines?
I'm using Saxon 6.5.5Radu wrote:What XSLT transformer type are you using in the transformation scenario? Saxon 6, 9 or Xalan?
I do not have an encoding set like that. I don't see any output method code. Only the following on the top:Radu wrote: In the XSLT stylesheet do you have an encoding set for the output file like:Code: Select all
<xsl:output method="xml" encoding="CP857"/>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
Eric
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