Customizing Eclipse output
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 2
- Joined: Wed Dec 01, 2010 7:01 pm
Customizing Eclipse output
I'm experimenting with generating an Eclipse output. So far I have been able to generate successfully and have the plug-in appear in Eclipse.
Is it possible to customize the output prior to plugging it into Eclipse? Basically I want to add a banner or header to each topic page (e.g. company logo). What do I need to do that?
Is it possible to customize the output prior to plugging it into Eclipse? Basically I want to add a banner or header to each topic page (e.g. company logo). What do I need to do that?
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Customizing Eclipse output
Hi,
Oxygen uses the DITA Open Toolkit to publish DITA content to various output formats.
So what you can do:
Edit the "Eclipse Help" Oxygen transformation scenario that you are using.
In the "Parameters" tab there is a parameters which might be interesting for you:
args.hdr lets you specify a file containing an XHTML fragment which will get inserted in the <body> for each generated topic HTML file.
So if for the parameter's value you specify a file in which you have the following content:
then all generated HTML topics will contain a reference to the image.
You can probably have your logo in your usual project's images folder and reference it in the DITA Map to make the DITA Open Toolkit copy it to the output directory.
My suggestion to you is to also register and ask this question on the DITA Users list:
http://tech.groups.yahoo.com/group/dita-users/
which is a very active community of DITA Open Toolkit customizers who might have some better answers than the ones I proposed.
Regards,
Radu
Oxygen uses the DITA Open Toolkit to publish DITA content to various output formats.
So what you can do:
Edit the "Eclipse Help" Oxygen transformation scenario that you are using.
In the "Parameters" tab there is a parameters which might be interesting for you:
args.hdr lets you specify a file containing an XHTML fragment which will get inserted in the <body> for each generated topic HTML file.
So if for the parameter's value you specify a file in which you have the following content:
Code: Select all
<p>
<img src="images/logo.gif" alt="Company logo"/>
</p>
You can probably have your logo in your usual project's images folder and reference it in the DITA Map to make the DITA Open Toolkit copy it to the output directory.
My suggestion to you is to also register and ask this question on the DITA Users list:
http://tech.groups.yahoo.com/group/dita-users/
which is a very active community of DITA Open Toolkit customizers who might have some better answers than the ones I proposed.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 2
- Joined: Wed Dec 01, 2010 7:01 pm
Re: Customizing Eclipse output
That's exactly what I was looking for. Thanks!
Works great but now instead of taking 30 seconds to generate my plugin it takes 103 minutes. Seems to slow down when it hits:
dita.inner.topics.xhtml

Works great but now instead of taking 30 seconds to generate my plugin it takes 103 minutes. Seems to slow down when it hits:
dita.inner.topics.xhtml
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Customizing Eclipse output
Hi,
Strange one.
Are you sure this is related to setting the header file? Is the header file template situated on a network share?
Usually such a slow down means either intense CPU processing or some remote network access for various resources.
Usually the transformation should work even if the network cable is unplugged. It this true in your case?
Regards,
Radu
Strange one.
Are you sure this is related to setting the header file? Is the header file template situated on a network share?
Usually such a slow down means either intense CPU processing or some remote network access for various resources.
Usually the transformation should work even if the network cable is unplugged. It this true in your case?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “General XML Questions”
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