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: 72
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.
teo
Posts: 72
Joined: Wed Aug 30, 2017 3:56 pm

Re: Exclude xml:lang in Diff Directories

Post by teo »

The recently released version 27 of the Oxygen suite comes with news regarding the feature(s) requested on this thread.

Ignore Nodes by XPath option supported in directory comparisons
The Ignore Nodes by XPath option, and the XPath expression provided for this purpose, in the File Comparison preferences page are now taken into account when comparing directories by invoking the tool.
The option is accessible via the Directory Compare tool.

XPath expressions to exclude nodes supported in Compare Directories script
A previous limitation was solved for the Compare Directories command-line script making it now possible to use the -enx XPathExprToExcludeNodes argument.
It allows you to specify an XPath expression that will exclude certain nodes from the comparison.
This option can now be used without any limitation, regardless of the format chosen for the comparison report.

Regards,
Teo
Teodor Timplaru
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply