Adding Additional Info in Footer
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 9
- Joined: Thu Apr 11, 2019 1:57 pm
Adding Additional Info in Footer
Post by santhudev123 »
Hi,
We have different documentation number for each sub-topic/sub-chapter and it should be mentioned in the footer(bottom -center). How can we achieve this.
The document number is as follow:
3EHW 411401
3EHW 411402
3EHW 411403
3EHW 411404
Here's my code
@bottom-center {
content: oxy_label(text, "ldent No.") "\A"
oxy_xpath("let $cm:= format-numbering() \
return concat( \
if ($cm= 'Loco Body') then '3EHW 411401' else \
if ($cm= 'Structure') then '3EHW 411402' else \
if ($cm= 'Exterior Finish') then '3EHW 411403' else \
if ($cm= 'Doors and Steps') then '3EHW 411404' else \
if ($cm= 'Draftgear and Couplers') then '3EHW 411405' else \
if ($cm= 'Windows') then '3EHW 411406' else \
if ($cm= 'Horns and Lights') then '3EHW 411407' else \
if ($cm= 'Wipers and Washers') then '3EHW 411408' else \
if ($cm= 'Buffers') then '3EHW 411409' else \
if ($cm= 'Cable Duct') then '3EHW 411470.' else '' \
, \
' ', \
format-numbering() \
) ");
We have different documentation number for each sub-topic/sub-chapter and it should be mentioned in the footer(bottom -center). How can we achieve this.
The document number is as follow:
3EHW 411401
3EHW 411402
3EHW 411403
3EHW 411404
Here's my code
@bottom-center {
content: oxy_label(text, "ldent No.") "\A"
oxy_xpath("let $cm:= format-numbering() \
return concat( \
if ($cm= 'Loco Body') then '3EHW 411401' else \
if ($cm= 'Structure') then '3EHW 411402' else \
if ($cm= 'Exterior Finish') then '3EHW 411403' else \
if ($cm= 'Doors and Steps') then '3EHW 411404' else \
if ($cm= 'Draftgear and Couplers') then '3EHW 411405' else \
if ($cm= 'Windows') then '3EHW 411406' else \
if ($cm= 'Horns and Lights') then '3EHW 411407' else \
if ($cm= 'Wipers and Washers') then '3EHW 411408' else \
if ($cm= 'Buffers') then '3EHW 411409' else \
if ($cm= 'Cable Duct') then '3EHW 411470.' else '' \
, \
' ', \
format-numbering() \
) ");
-
- Posts: 846
- Joined: Mon Dec 05, 2011 6:04 pm
Re: Adding Additional Info in Footer
Hi santhudev123,
It is pretty difficult to mind the structure of your source files.
For example, it is not clear how and where you store strings like "3EHW 411401".
Also, we need more details on the "format-numbering()" function. Is it a custom one?
Regards,
Costin
It is pretty difficult to mind the structure of your source files.
For example, it is not clear how and where you store strings like "3EHW 411401".
Also, we need more details on the "format-numbering()" function. Is it a custom one?
Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
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