W3C home > Mailing lists > Public > public-openannotation@w3.org > September 2012

Re: Annotating HTML: Distinguishing between annotating the source and the rendition

From: Paolo Ciccarese <paolo.ciccarese@gmail.com>
Date: Fri, 28 Sep 2012 11:40:33 -0400
Message-ID: <CAFPX2kA7XfU=kPDw2mGaKfq1wsdJ5JbxN1LVx4WAgJBbWKrbQQ@mail.gmail.com>
To: Simone Sacchi <sacchi1@illinois.edu>
Cc: public-openannotation@w3.org
Hi Simone,
If you look at the "Text Selector by Quotation" (
http://www.openannotation.org/spec/extension/)  we wrote:
The text to be quoted should be normalized to a readable string before
recording. Thus HTML/XML tags should be removed, character entities should
be reduced to the character that they encode, redundant whitespace should
be normalized, and so forth. This allows the Selector to be used with
different encodings and still have the same semantics and utility.

As I have the same need I was initially thinking to add a flag to that
selector, keep the markup and still normalize whitespaces. But that is in
contrast with the above definition.
An alternative is to use a different kind of selector with XPath to point
to the desired DOM element. Would that work for you?

Paolo

On Fri, Sep 28, 2012 at 10:55 AM, Simone Sacchi <sacchi1@illinois.edu>wrote:

> Hi all,
>
> I have a quick question: is it possible to represent explicit whether
> (for an HTML page) you are annotating the HTML source code or the
> rendered text in the browser? I couldn't figure it out...
>
> My particular case is one in which you can have the same rendered text
> (or entire page) using different HTML source codes. I would like to
> explicitly point to the rendered component and the corresponding
> selection in the source code.
>
> Thanks a lot in advance for any reply,
> Simone
>
> -------------------------------------------------------------------------------------------------------------------------------------
> Simone Sacchi
> Research Assistant - Center for Informatics Research in Science and
> Scholarship
> Ph.D Student - Graduate School of Library and Information Science
> University of Illinois at Urbana Champaign
>
> Email(s): sacchi1@illinois.edu - simo.sacchi@gmail.com
> Skype: simone.sacchi
>
> ------------------------------------------------------------------------------------------------------------------------------------
>
>
>


-- 
Dr. Paolo Ciccarese
http://www.paolociccarese.info/
Biomedical Informatics Research & Development
Instructor of Neurology at Harvard Medical School
Assistant in Neuroscience at Mass General Hospital
+1-857-366-1524 (mobile)   +1-617-768-8744 (office)

CONFIDENTIALITY NOTICE: This message is intended only for the addressee(s),
may contain information that is considered
to be sensitive or confidential and may not be forwarded or disclosed to
any other party without the permission of the sender.
If you have received this message in error, please notify the sender
immediately.
Received on Friday, 28 September 2012 15:41:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 28 September 2012 15:41:06 GMT