Create META tag in published HTML

Post here questions and problems related to editing and publishing DITA content.
IanMayo
Posts: 13
Joined: Thu Jun 08, 2023 6:46 pm

Create META tag in published HTML

Post by IanMayo »

I'd like to allow an Oxygen DITA author to create a tag that gets propagated through to published webhelp as a meta field in the header content, across all pages.

My author is familiar with controlling `parameters` in the `Edit DITA Scenario` dialog. I'm aware that I should be able to introduce a new parameter, then customise the XSL for the template to include it in published content - but I'm interested in learning if there is a mechanism already built-in to OxygenXML.
julien_lacour
Posts: 750
Joined: Wed Oct 16, 2019 3:47 pm

Re: Create META tag in published HTML

Post by julien_lacour »

Hello,

The built-in mechanism only lets you use <othermeta> elements to generate additional <meta> tags in HTML output. However, the specification also states that this attribute does not cascade from the map to its topicrefs. This means you can add it to individual topicrefs when only a few topics require it, but that approach becomes impractical if you need to include the new <meta> tag in every topic.

Regards,
Julien
Post Reply