I would like to set my localization note to a specific node if it exists, or another node if the first node doesn't exist.
So, I need to create an XPath expression for
locNotePointer that would do that.
To illustrate what I want to do, here is a sample of my XML file:
</entry>
<entry key="PluginActionLaunchExecutable" needsReview="no">
<loc>Launch</loc>
</entry>
<entry key="SolverProblemPackageNameAndVersionFormat" needsReview="no">
<loc>{0} ({1})</loc>
<comment>0=name, either display name or package name; 1=version, either display version or package version</comment>
</entry>
For the first entry, since <comment> isn't there, I want to set the loc note to @key. For the second entry, since <comment> exists, I would like to set it to that comment.
Thanks