Update metadata to all XML in the DITA MAP

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

Update metadata to all XML in the DITA MAP

Post by SathyaOX » Thu Mar 09, 2017 9:19 am

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: 6329
Joined: Fri Jul 09, 2004 5:18 pm

Re: Update metadata to all XML in the DITA MAP

Post by Radu » Thu Mar 09, 2017 9:45 am

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: 14
Joined: Wed Oct 26, 2016 8:19 pm
Location: India

Re: Update metadata to all XML in the DITA MAP

Post by SathyaOX » Mon Mar 13, 2017 10:27 am

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: 6329
Joined: Fri Jul 09, 2004 5:18 pm

Re: Update metadata to all XML in the DITA MAP

Post by Radu » Mon Mar 13, 2017 10:32 am

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