Philippe Nobili wrote: > (message re-sent as it did not appear in discussion threads) > Dear M. Shafie, > > It seems that we have a small issue with XInclude and references. > Nothing lethal, but thanks for your advice (we might be doing something > wrong as usual). Here is the problem: > > 1) We use internal IDs to identify persons names (typically: <ulink > id="theName" url="mailto:theName at org.com">theName</ulink>). > The purpose is to recall this name later on in the document without > having to type the full name. So we include it as a reference to this > internal element: Shift+Ctrl+c, then Ctrl+v. The untranscluded reference > would look like: (note than href is empty). > > {http://www.w3.org/2001/XInclude}include href= xpointer=theName > > So far, so good: the validity tool show a status OK. > > 2) We save the file as, say *myFile.xml*. > 3) Later on, we save this file under another name, say *myFile2.xml*. > > Now, the validity check complains about ID "theName" being duplicated in > the document and indeed if we look at the unstranscluded reference, we > now obtain: > > {http://www.w3.org/2001/XInclude}include href=myFile.xml xpointer=theName > > The href attribute has been filled-in with the name of the original file > and XMLMind considers than two elements haev the same ID. If we remove > the href attribute by hand, the document is considered as valid again. > Since we extensively use references to name persons, products, > technologies, etc etc... this is sometimes annoying. Do we do something > bad, or could it be considered as a bug (feature ?) and fixed ? >
I understand the problem. This is clearly a bug. We'll fix it in next release.

