Add ditamap title to gen-user-header
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 70
- Joined: Thu Mar 21, 2013 12:55 am
Add ditamap title to gen-user-header
I have created an XSL file that adds a header (gen-user-header) to each page generated by the DITA MAP XHTML scenario. I would like to add the title of the ditamap to this header. It seems like there should be a simple way to do this. How do you do this?
Thanks,
Paul
Thanks,
Paul
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Add ditamap title to gen-user-header
Hi Paul,
Tough one because when DITA content gets published to XHTML using the DITA to XHTML transformation by default each individual topic gets converted to an HTML file so when the XSLT is applied on a DITA topic you have no context information related to the DITA Map which linked to this topic. So I do not have a good idea for this one.
By the way, if you edit the DITA XHTML transformation scenario, in the Parameters list there is a parameter called args.hdr which you could possibly use to add static content to each topic's header instead of making an XSLT customization.
Have you tried the DITA Map WebHelp transformation? It should show the DITA Map like a TOC in the left part of the browser and thus present the title of the DITA Map at all times.
Regards,
Radu
Tough one because when DITA content gets published to XHTML using the DITA to XHTML transformation by default each individual topic gets converted to an HTML file so when the XSLT is applied on a DITA topic you have no context information related to the DITA Map which linked to this topic. So I do not have a good idea for this one.
By the way, if you edit the DITA XHTML transformation scenario, in the Parameters list there is a parameter called args.hdr which you could possibly use to add static content to each topic's header instead of making an XSLT customization.
Have you tried the DITA Map WebHelp transformation? It should show the DITA Map like a TOC in the left part of the browser and thus present the title of the DITA Map at all times.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 12
- Joined: Fri Nov 25, 2016 1:51 pm
- Location: Pune , India
- Contact:
Re: Add ditamap title to gen-user-header
Hi Radu Sir,
I got the same scenario , instead I need to show the ditamap title on body header in PDF generation. How can I do that ? My TOC , cover page etc are disabled. I need to work only in body pages. So the ditamap title will be shown on each header body pages.
Regards
Rohit
I got the same scenario , instead I need to show the ditamap title on body header in PDF generation. How can I do that ? My TOC , cover page etc are disabled. I need to work only in body pages. So the ditamap title will be shown on each header body pages.
Regards
Rohit
Rohit Ghosh
Jr. Software Developer
Jr. Software Developer
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Add ditamap title to gen-user-header
Hi Rohit,
We have a small topic in our user's guide which mentions the two XSLT templates where you need to make changes:
https://www.oxygenxml.com/doc/versions/ ... ined3.html
so if you override those XSLT templates in your PDF customization you can probably use an XPath expression to match the DITA Map title and use it in the header.
Regards,
Radu
We have a small topic in our user's guide which mentions the two XSLT templates where you need to make changes:
https://www.oxygenxml.com/doc/versions/ ... ined3.html
so if you override those XSLT templates in your PDF customization you can probably use an XPath expression to match the DITA Map title and use it in the header.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 12
- Joined: Fri Nov 25, 2016 1:51 pm
- Location: Pune , India
- Contact:
Re: Add ditamap title to gen-user-header
Hi Radu Sir,
Thank You for your valuable suggestions . I managed to show it
Regards
Rohit
Thank You for your valuable suggestions . I managed to show it
Regards
Rohit
Rohit Ghosh
Jr. Software Developer
Jr. Software Developer
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