displaying XML in external documents
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 35
- Joined: Fri Jun 03, 2005 11:00 am
displaying XML in external documents
Dear Oxygen,
I am trying to display some XML fragment in a word document, and I am hitting the following problems.
- First of all, a simple cut and paste only gives me plain text XML, rather than a nice colored syntax.
- I've tried to be clever and print to a PDF file, with the intent of copying from the PDF file.
I am using WinToPDF, which I am very happy with. However, the result from Oxygen is that all the text is in a 1 pt font, with loads of spaces inserted in the text...
So, what would be your recommended way of generating my XML fragments, other than a screen print, or using my old XMLSpy copy
?
Thanks
I am trying to display some XML fragment in a word document, and I am hitting the following problems.
- First of all, a simple cut and paste only gives me plain text XML, rather than a nice colored syntax.
- I've tried to be clever and print to a PDF file, with the intent of copying from the PDF file.
I am using WinToPDF, which I am very happy with. However, the result from Oxygen is that all the text is in a 1 pt font, with loads of spaces inserted in the text...
So, what would be your recommended way of generating my XML fragments, other than a screen print, or using my old XMLSpy copy

Thanks
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello Franck,
It is a problem of the print support of the Java 1.5.0 virtual machine. Switch to Java 1.4.2 and the font size will be preserved in the PDF generated by Win2PDF. If <oXygen/> runs with Java 1.5.0 the font size of the PDF text is very small and you have to copy the colored text from the PDF file, paste it in the Word document and increase the font manually.
Regards,
Sorin
It is a problem of the print support of the Java 1.5.0 virtual machine. Switch to Java 1.4.2 and the font size will be preserved in the PDF generated by Win2PDF. If <oXygen/> runs with Java 1.5.0 the font size of the PDF text is very small and you have to copy the colored text from the PDF file, paste it in the Word document and increase the font manually.
Regards,
Sorin
-
- Posts: 35
- Joined: Fri Jun 03, 2005 11:00 am
colored syntax in cut and paste
Thanks for the PDF info.
That said, to go back to syntax colouring, I have noticed that the java editor in Eclipse preserves the syntax coloring when cut and pasting to a OLE application, but the Oxygen plugin does not.
I want to live in a world of colors!
That said, to go back to syntax colouring, I have noticed that the java editor in Eclipse preserves the syntax coloring when cut and pasting to a OLE application, but the Oxygen plugin does not.
I want to live in a world of colors!

-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
What is the OLE application which preserves the text colors and what is the Eclipse version ? Microsoft Word does not preserve the colors of text copied from a Java editor of Eclipse 3.1. When I use the Paste action Microsoft Word displays a dialog containing only the "Unformatted text" option.
Regards,
Sorin
What is the OLE application which preserves the text colors and what is the Eclipse version ? Microsoft Word does not preserve the colors of text copied from a Java editor of Eclipse 3.1. When I use the Paste action Microsoft Word displays a dialog containing only the "Unformatted text" option.
Regards,
Sorin
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi Frank,
I just tested pasting from the Eclipse 3.1 Java editor to Wrod and I cannot get formated text in Word. AFAIK Eclipse 2.1 used to provide formated text but since Eclipse 3.0 this is not true anymore. Oxygen on Eclipse should behave exactly like all the other Eclipse plugin because we use the same Eclipse support for syntax highlighting.
Best Regards,
George
I just tested pasting from the Eclipse 3.1 Java editor to Wrod and I cannot get formated text in Word. AFAIK Eclipse 2.1 used to provide formated text but since Eclipse 3.0 this is not true anymore. Oxygen on Eclipse should behave exactly like all the other Eclipse plugin because we use the same Eclipse support for syntax highlighting.
Best Regards,
George
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Well, I have a slightly newer Word, same version but a little more recent build and I am not able to get the formated text from Eclipse to Word... And if you try to paste from the oXygen Eclipse plugin to Word in your configuration you get unfomrated text?
If I try to paste from Firefox in Word in my configuration I get formated text.
We will look more into this and let you know what we find out.
Best Regards,
George
If I try to paste from Firefox in Word in my configuration I get formated text.
We will look more into this and let you know what we find out.
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