Modify HEADER/FOOTER For all language
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 147
- Joined: Sat Oct 19, 2013 8:21 am
Modify HEADER/FOOTER For all language
Hello,
I want to change the header and footer on documents in any language.
I saw that formatting the header and footer is in XML files as en.xml.
I should handle 7 languages is it possible to customize this layout in one single file of the language?
I also noticed that the Portuguese language is missing?
thank you
I want to change the header and footer on documents in any language.
I saw that formatting the header and footer is in XML files as en.xml.
I should handle 7 languages is it possible to customize this layout in one single file of the language?
I also noticed that the Portuguese language is missing?
thank you
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Modify HEADER/FOOTER For all language
Post by sorin_ristache »
Hello,
Are you talking about the file en.xml from directory [Oxygen-install-dir]\frameworks\dita\DITA-OT\plugins\org.dita.pdf2\cfg\common\vars for DITA PDF output? Yes, you have to edit one such XML file per language, for example: en.xml for English, fr.xml for French, de.xml for German, ja.xml for Japanese, etc.
By default the Portuguese language is not handled, and that means the headers and footers and various types of titles (Table of Contents, Preface, Related Links, etc) inserted in the PDF output created from Portuguese documents are the English ones. You can create a pt.xml file by duplicating the en.xml file in the same directory and edit that pt.xml file for customizing the headers, footers and section titles as you want. The name of the file (pt.xml) comes from the value of the xml:lang attribute used in the XML topic files, for example: xml:lang="en", xml:lang="pt", etc.
Regards,
Sorin
Are you talking about the file en.xml from directory [Oxygen-install-dir]\frameworks\dita\DITA-OT\plugins\org.dita.pdf2\cfg\common\vars for DITA PDF output? Yes, you have to edit one such XML file per language, for example: en.xml for English, fr.xml for French, de.xml for German, ja.xml for Japanese, etc.
By default the Portuguese language is not handled, and that means the headers and footers and various types of titles (Table of Contents, Preface, Related Links, etc) inserted in the PDF output created from Portuguese documents are the English ones. You can create a pt.xml file by duplicating the en.xml file in the same directory and edit that pt.xml file for customizing the headers, footers and section titles as you want. The name of the file (pt.xml) comes from the value of the xml:lang attribute used in the XML topic files, for example: xml:lang="en", xml:lang="pt", etc.
Regards,
Sorin
-
- Posts: 147
- Joined: Sat Oct 19, 2013 8:21 am
Re: Modify HEADER/FOOTER For all language
Hi,
I modified the file en.xml :
In the modify there is no text, I must repeat this change on all language files?
Thank you
I modified the file en.xml :
Code: Select all
<variable id="Body odd footer"><param ref-name="prodname"/> | <param ref-name="heading"/> | <param ref-name="pagenum"/></variable>
<variable id

Thank you
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Modify HEADER/FOOTER For all language
Post by sorin_ristache »
Yes, for each language a different file must be modified. This is how the PDF output is created for DITA documents. For English the body footer may contain only the  | characters, but for other languages it may be usual to include other data in the footer of a printed book. That ( |) is only a default value.
Regards,
Sorin
Regards,
Sorin
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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