There are two types of link: firstly, a cross reference type link to a section within the same document; the other is a hyperlink to another document. With the cross reference the destination is nearly always a title of a section within the same document. The hyperlink will always point to another file.
I use a character style to indicate that a link is present (by applying a different colour to the text). I can create this by tagging the text in the XML file - a colour will be applied to the tagged text by mapping the XML tag with the InDesign character style when it is brought into the InDesign file. I then have to select the coloured text in InDesign and apply a hyperlink to it and point it to a pre-determined destination.
This can be quite time consuming if there are a lot of links. Therefore it would be nice if, when I apply a character style, it automatically assigned a hyperlink to the text with that character style. Similarly, if titles (as defined by anything using a particular paragraph style) were automatically assigned as being 'hyperlink destinations' the links could be made automatically (assuming that I was careful to use the same text string for each end of the link and that a text anchor was created by default). It would be like having further 'table of contents' type links within the document.
I would love to be able to do this by using attributes within the XML file but it is not possible. At least I can automate the highlight colour of a 'live' piece of text by tagging the XML. If only I could get InDesign to automatically apply a hyperlink to it ...
The links you provided are interesting but not quite what I am looking for.