XML Comment Xpath?

Is it possible to parse the comment attribute from a parent of a "translatable" node; then display it in the Editor?

This is my XML file

<?xml version="1.0" encoding="UTF-8"?>
<wrapper-node>
<group-node>
	<content-node comment="Apple comment">
		<text-node>
			Apple
		</text-node>
	</content-node>
</group-node>
<group-node>
	<content-node comment="Banana comment">
		<text-node>
			Banana
		</text-node>
	</content-node>
</group-node>
</wrapper-node>

Setting the the translatable node is easy enough.

But I can't find any documentation on the Comment XPath, how to define it or where the results appear.

Trados Studio Edit Rule dialog box showing XPath field with value 'text-node' and Comment XPath field with value 'ancestor::content-node@comment'.

Can anyone shed any light on this, or if there is a better way?

Thanks

Sam



Generated Image Alt-Text
[edited by: Trados AI at 5:45 AM (GMT 0) on 29 Feb 2024]