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
Location: India

Update metadata to all XML in the DITA MAP

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: 5689

Re: Update metadata to all XML in the DITA MAP

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/18.1/ug-editor/topics/refactoring-xml-documents-x-tools.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
SathyaOX
Posts: 14
Location: India

Re: Update metadata to all XML in the DITA MAP

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: 5689

Re: Update metadata to all XML in the DITA MAP

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

Return to “Common Problems”

Who is online

Users browsing this forum: No registered users and 2 guests