Update metadata to all XML in the DITA MAP

Having trouble installing Oxygen? Got a bug to report? Post it all here.
SathyaOX
Posts: 35
Joined: Wed Oct 26, 2016 8:19 pm
Location: India

Update metadata to all XML in the DITA MAP

Post by SathyaOX »

Hi,
We update the Release number and Issue number in the DITA MAP Metadata that reflects in the cover page of the transformed PDF. I want to check whether there is a provision to update each XML Metadata at one go. This is required when i transform individual XMLs for review.
-Sathya
Radu
Posts: 9451
Joined: Fri Jul 09, 2004 5:18 pm

Re: Update metadata to all XML in the DITA MAP

Post by Radu »

Hi Sathya,

With DITA you can conref from topics to maps. So if in the DITA Map you set an ID on that particular metadata element you can conref to it from the topic. Or you can have the metadata element defined in a separate reusable topic and reuse it from both the map and the topics.
Otherwise maybe you can either use Find/Replace in files to replace all the old metadata or use Oxygen's XML refactoring tools, create your own XSLT script which can be applied on the topics to update them:

https://www.oxygenxml.com/doc/versions/ ... tools.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
SathyaOX
Posts: 35
Joined: Wed Oct 26, 2016 8:19 pm
Location: India

Re: Update metadata to all XML in the DITA MAP

Post by SathyaOX »

Thanks. Another question, can do change multiple attributes values in one go? I was able to mention one attribute and one value.
-Sathya
Radu
Posts: 9451
Joined: Fri Jul 09, 2004 5:18 pm

Re: Update metadata to all XML in the DITA MAP

Post by Radu »

Hi Sathya,

You can create your own XML refactoring XSLT script which processes the document in any way that you want. Indeed the pre-defined operations are limited in functionality.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply