Camille Bégnis wrote:
usecase: editing a DB5 master document (A.xml) that transcludes another
document (B.xml) that himself transcludes a third document (C.xml)
When you right-click on an element part of C.xml and choose "Open
referenced document" it opens B.xml instead of C.xml.
It would be nice to offer the choice, or open C.xml instead.
XMLeditor-Support wrote:
It's too late to consider this enhancement for v5.9, as we plan to
release this new version in the next few days.
I promised the feature too quickly, without looking at the code. Sorry
for that.
While your request for enhancement perfectly makes sense, it is quite
difficult to implement.
Let's take your use case to explain why:
Master document (A.xml) transcludes another document (B.xml) which
itself transcludes a third document (C.xml).
Right-clicking in A.xml on an element coming from C.xml and choose "Open
Referenced Document" (keyboard shortcut: Ctrl+Shift-E) indeed opens
B.xml instead of C.xml.
In fact "Open Referenced Document", not only opens the referenced
document, but it also position the selection (or at least the caret) at
the same place in the opened referenced document.
For example, if the caret is in A.xml just after phrase "Foo is bar.",
then after opening B.xml using "Open Referenced Document", you'll find
the caret in this file also just after phrase "Foo is bar."
This secondary function of "Open Referenced Document" is deemed very
useful. Unfortunately, it is also quite difficult to implement when
directly opening C.xml (i.e. rather than first open B.xml and then open
C.xml; two "Open Referenced Document" ``hops'' instead one one).
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support