W3C home > Mailing lists > Public > www-amaya@w3.org > April to June 2004

Annotation highlight PB with unique id

From: Meunier, Jean-Luc <Jean-Luc.Meunier@xrce.xerox.com>
Date: Wed, 23 Jun 2004 14:43:57 +0200
Message-ID: <B792B80756A1D511B9BD00508BB8CDB202675515@macedoine.grenoble.xrce.xerox.com>
To: "'www-amaya@w3.org'" <www-amaya@w3.org>

I'm surprised by the behavior of the annotation mechanism when annotated elements have an 'id'.

In this case, two issues:
1 - the  annotation symbol (the little orange pen) doesn't appear close to the selection but rather on top left point of the document.
2 - In the list of annotations (from the "View:show links" menu), if I click the left-part of the annotation, then the whole document is highlighted instead of
the selected part. 

In absence of id, the highlight works fine and the little pen is properly positionated.

My personal problem is that I'm interested in getting xpointer values referring to the element's id rather than expressions like: xpointer(/A[1]/C[1]).
Actually, I probably can compute one from the other. Any hints on how to do this easily? 

I attach two small XML files, identical except that one has unique 'id' on its elements.


Received on Wednesday, 23 June 2004 08:46:34 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:29 UTC