okfn/annotator — Issue #73: One question about range.
Author: andybu
Created: 2011-11-07 16:00:13+00:00
State: open

Hi.
I have the following question about start and end parameter in range.coffee
At this moment i receive the following:

"start": "/div/div[2]/div/span/span[6]",
"end": "/div/div[2]/div/span/span[6]"...

I have id in text. How can i receive the following text:

"start": "id=[6]",
"end": "id=[6]"...

Where i can add the following code?

if ( node.hasAttribute && node.hasAttribute("id") && node.getAttribute("id") != "" ) {
return 'id("' + node.getAttribute("id") + '")';
}

Thanks Andrey