Re: [web-annotation] XPath Range Selector

@tilgovi so...something like:

```
{
  "selector": {
    "type": "Range",
    "startSelector": {
      "type": "XPathSelector",
      "path": "//article/p[1]"
      "subSelector": {
        "type": "TextPositionSelector",
        "start": 10,
        "end": 10
      }
    },
   "endSelector": {
      "type": "XPathSelector",
      "path": "//article/p[3]"
      "subSelector": {
        "type": "TextPositionSelector",
        "start": 0,
        "end": 8
      }
    }
  }
}
```

That seems to actually specify a node and a *point* within it and 
another node and a *range* within it.

Personally, I found this construction to make more sense
```
 {
  "selector": {
    "type": "XPathSelector",
    "startPath": "//article/p[1]",
    "endPath": "//article/p[3]",
    "subSelector": {
      "type": "TextPositionSelector",
      "start": 10,
      "end": ...whatever the end # would be within the normalized 
output of the text between p[1] & p[3]...
    }
  }
}
```

Obviously things fall down (currently) for the value of `end` in the 
`TextPositionSelector`...but that seems definable.

Do those examples present both sides accurately? In either case, what 
am I missing (which I'm sure is something :smile: )?

-- 
GitHub Notif of comment by BigBlueHat
See 
https://github.com/w3c/web-annotation/issues/95#issuecomment-154502565

Received on Friday, 6 November 2015 19:04:13 UTC