Pierrick Brihaye wrote: > > Is it possible to have the very practical "Go to Opposite Link End" > command" menu command in the toolbar ?
If I understand well, you want us to add it to the ``factory configuration''. > Is it possible to have the same behavior for xref/linkend ? Command selectById (see http://www.xmlmind.com/xmleditor/_distrib/docs/poweruser/ar01s05s32.html) is a generic command (i.e. not DocBook specific) which works with any element having an attribute of type ID, IDREF, or IDREFS. Create a xref with a linkend attribute containing a valid id, select the xref element by clicking on it and use "Go to opposite link end" and you'll see that it works. > Is it possible to have an automatic ID generation, at least by > double-clicking in the id attribute box ? This is already implemented but as usual you need to tune the ``factory configurations'' to your needs. Use newElementContent configuration element with attribute generateIds="true". See http://www.xmlmind.com/xmleditor/_distrib/docs/poweruser/ar01s04s15.html > Regarding the ID selector window, is it possible to have a short > overview of destination element's content (kind of <xsl:value-of>) ? > > I'd also like to have a dynamic resolution of xref. By default, it > displays a nice icon with the linkend attribute. What I'd like is a > binding to a scripted "evaluate()" function that would : > > 1) output "unresolved linked" (or similar) if linkend is not (yet) > avalaible : i.e. replace those "???" by more intelligible text, possibly > localized, > > 2) output the destination element's xreflabel if there's one, > > 3) output the destination element's content (possibly truncated), > > 4) eventually stop the previous output when the endterm is met. All this can be implemented in XXE and I have already sent you a simplified version of what you want (my intend was to prove that it could be implemented, not to implement full-fledged support for xrefs). > OK, I can write it myself but I lack some examples for traversing the > document's tree. See http://www.xmlmind.com/xmleditor/_distrib/docs/dev/ar01s04.html#d0e1243. > Do I have to iterate over *each* node until I find a > *...@id= 'xreflinkend'] ? No, it is slightly easier that this. See http://www.xmlmind.com/xmleditor/_distrib/docs/api/com/xmlmind/xmledit/doc/XPath.html. Note that only a very small subset of XPath is supported but nevertheless, it helps. PS: Being the translator of the User's Guide to French, you can get one Professional Edition license for free. Professional Edition includes the full source code of XXE, so may be it could help you in customizing XXE. If you are interested, just send me (hussein at pixware.fr) a filled order form (without the money of course :-).

