Inserting bookmeta metadata into a topic
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 47
- Joined: Mon Aug 17, 2020 7:16 pm
Inserting bookmeta metadata into a topic
Hi
I would like to use some bookmeta metadata into a topic within the same map, specifically the "copyrlast" value. I would like the copyright year to display dynamically in a topic holding copyright information.
Here is the metadata:
I would like the year to appear in this line:
Is there way that I can do this, or should I simply add a keydef to my map with the copyright year, which can be keyref'd into the copyright statement.
Thanks
Matt
I would like to use some bookmeta metadata into a topic within the same map, specifically the "copyrlast" value. I would like the copyright year to display dynamically in a topic holding copyright information.
Here is the metadata:
Code: Select all
<bookrights class="- topic/data bookmap/bookrights ">
<copyrlast class="- topic/data bookmap/copyrlast ">
<year class="- topic/ph bookmap/year ">2021</year>
</copyrlast>
</bookrights>
Code: Select all
<p class="- topic/p ">© Company Name [Insert copyrlast here]</p>
Thanks
Matt
-
- Posts: 9481
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Inserting bookmeta metadata into a topic
Hi Matt,
Maybe indeed you can define a key for the copyright year:
then refer to that key both in the bookmap:
and as a keyword or ph with keyref in the topic. I did not test the published output but this might work.
Regards,
Radu
Maybe indeed you can define a key for the copyright year:
Code: Select all
<keydef keys="copyrightYear">
<topicmeta>
<keywords>
<keyword>2021</keyword>
</keywords>
</topicmeta>
</keydef>
Code: Select all
<bookrights>
....
<copyrlast>
<year><keyword keyref="copyrightYear"/></year>
</copyrlast>
...
</bookrights>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
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