we'd like to use :xrefstyle: full option in combination with custom Treeprocessor , which changes the way how examples/tables are numbered. The problem is that when using this combination the numbering works fine but the references are still using the "old numbering". See the next screenshot, where caption says "Example 4.1" but reference is "Example 44":
The question is - is there anything that can be done about this, so that the reference will also start with "Example 4.1"?
You can see the (local) caption property is only used as a fallback now.
p.s. I eventually want to get rid of caption as a stored property on the block because it's a total abuse of the term. The caption should only be computed, like the xreftext. However, the transition is going to be a bit painful as the legacy terminology got so deeply entrenched.