Exclude xml:lang in Diff Directories

Post here questions and problems related to editing and publishing DITA content.
leah
Posts: 5
Joined: Mon Mar 29, 2021 6:09 pm

Exclude xml:lang in Diff Directories

Post by leah »

Hi there.

I am using the "Compare Directories" tool in Oxygen XML Editor to compare XML files.
I am looking at differences in the map structure across different target locales to see if everything aligns with the source code. (there are some errors to resolve)

So, I would like to ignore the xml:lang="xxx" as it is bringing up all the files as the language codes are all different.

Is there a solution to exclude this language attribute with the "Diff Directories" application ?

Thanks!
teo
Posts: 57
Joined: Wed Aug 30, 2017 3:56 pm

Re: Exclude xml:lang in Diff Directories

Post by teo »

Hello,

The possibility to ignore nodes by XPath expressions is only available for Diff Files tool.
We have registered a task to allow nodes to be ignored via XPath expressions for Diff Directories too, but the proposed solutions are still under debate.
That's because the algorithm used to compare directories is particular and does not allow the direct application of the same node exclusion logic as in the case of direct comparison of 2 files.
Not without some performance issues.

Teo
Teodor Timplaru
<oXygen/> XML Editor
http://www.oxygenxml.com
leah
Posts: 5
Joined: Mon Mar 29, 2021 6:09 pm

Re: Exclude xml:lang in Diff Directories

Post by leah »

Ah, that is sad to hear. But, thanks for responding with the explanation Teo.
Post Reply