Page 1 of 1

Update metadata to all XML in the DITA MAP

Posted: Thu Mar 09, 2017 9:19 am
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.

Re: Update metadata to all XML in the DITA MAP

Posted: Thu Mar 09, 2017 9:45 am
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

Re: Update metadata to all XML in the DITA MAP

Posted: Mon Mar 13, 2017 10:27 am
by SathyaOX
Thanks. Another question, can do change multiple attributes values in one go? I was able to mention one attribute and one value.

Re: Update metadata to all XML in the DITA MAP

Posted: Mon Mar 13, 2017 10:32 am
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