Changing PDF Header in generated documentation

This should cover W3C XML Schema, Relax NG and DTD related problems.
jfuqua
Posts: 3
Location: Stafford, Texas U.S.A.

Changing PDF Header in generated documentation

Wed May 20, 2009 5:22 pm

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
sorin_ristache
Posts: 4144

Re: Changing PDF Header in generated documentation

Thu May 21, 2009 9:50 am

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
jfuqua
Posts: 3
Location: Stafford, Texas U.S.A.

Re: Changing PDF Header in generated documentation

Fri May 22, 2009 6:02 pm

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
sorin_ristache
Posts: 4144

Re: Changing PDF Header in generated documentation

Fri May 22, 2009 6:25 pm

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
jfuqua
Posts: 3
Location: Stafford, Texas U.S.A.

Re: Changing PDF Header in generated documentation

Fri May 22, 2009 7:16 pm

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
sorin_ristache
Posts: 4144

Re: Changing PDF Header in generated documentation

Tue May 26, 2009 5:55 pm

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

Return to “XML Schemas”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest