Page 1 of 1

Changing PDF Header in generated documentation

Posted: Wed May 20, 2009 5:22 pm
by jfuqua
I have reviewed the header.content and footer.content files but do not see where the content can be changed from "Generated with oXygen XML Editor" to "Copyright - The name of my Corporation" and also remove "Take care of the environment, print only if necessary!". I am new to DocBook and FO processing.

Cheers,
John

Re: Changing PDF Header in generated documentation

Posted: Thu May 21, 2009 9:50 am
by sorin_ristache
Hello,

For customizations of the output of DocBook transformations you need to create and run a DocBook customization layer. We have a video demonstration that shows how to create and run such a customization. You should follow that example for header.content and footer.content.

If you need help about editing and transforming DocBook documents in general we have other video demonstration about that. Maybe you should start with that if you are new to both DocBook and FO processing.


Regards,
Sorin

Re: Changing PDF Header in generated documentation

Posted: Fri May 22, 2009 6:02 pm
by jfuqua
Ok, I understand now how this is all working, and I am able to customize the DocBook output of the schema and then generate the PDF. However, everytime I make incremental changes to my schema and go through this process again, I have to retype all of the <info> content. How can I set this at a project level for the schema?

Thanks,
John

Re: Changing PDF Header in generated documentation

Posted: Fri May 22, 2009 6:25 pm
by sorin_ristache
Hello,

Do you mean you edit the XML Schema components (types, elements, attribute groups, etc) and you have to change the header content, the footer content or the copyright information? The customization layer should be changed (edited) only when you want to change the content that is customized in it. What do you mean by incremental changes in the schema?


Regards,
Sorin

Re: Changing PDF Header in generated documentation

Posted: Fri May 22, 2009 7:16 pm
by jfuqua
So here is the process.

1. create/modify my schema document.
2. generate a DocBook xml document of the schema.
3. Add the info elements that I want to show in doc.
4. Run a senario DocBook PDF to generate the pdf.
5. Make a change to my schema.
6. generate a DocBook xml document of the schema.
7. Now I have to re-add my info elements again.
8. Run a senario DocBook PDF to generate the pdf.

I am trying to avoid step 7.

Thanks,
John

Re: Changing PDF Header in generated documentation

Posted: Tue May 26, 2009 5:55 pm
by sorin_ristache
Hello,

You don't have to do step 7 if you set your custom header and footer with the templates named user.header.content and user.footer.content. These templates are provided in DocBook XSL as place holders where you can set your own content for header and footer. Your content will be added when you run your DocBook XSL customization layer.


Regards,
Sorin