Customizing Eclipse output

Questions about XML that are not covered by the other forums should go here.
twpete
Posts: 2
Joined: Wed Dec 01, 2010 7:01 pm

Customizing Eclipse output

Post by twpete »

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?
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Customizing Eclipse output

Post by Radu »

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:

Code: Select all


        <p>
<img src="images/logo.gif" alt="Company logo"/>
</p>
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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
twpete
Posts: 2
Joined: Wed Dec 01, 2010 7:01 pm

Re: Customizing Eclipse output

Post by twpete »

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
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Customizing Eclipse output

Post by Radu »

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply