Ticket #129 (closed task: duplicate)

Opened 6 years ago

Last modified 5 years ago

xpointer library modifcations

Reported by: stevec Assigned to: pradeep
Priority: critical Milestone:
Component: topaz Version: 0.5-SNAPSHOT
Keywords: xpointer Cc:
Blocking: Blocked By:

Description

It looks like the xpointer library here:

http://www.cs.unibo.it/projects/xslt%2B%2B/

is a viable starting point for Topaz's development. From the PLoS One perspective, we would need it to be able to support the identification of arbitrary ranges within a document, which could potentially span nodes. An example of such an expression is:

start-point(string-range(id("x20060728a")/p[1],"",288,1))/range-to(end-point(string-range(id("x20060801a")/h3[1],"",39,1)))

For a single region (i.e. same parent node for start and end points):

string-range(/article[1]/body[1]/sec[1]/p[2],"",194,344)

Note that due to potential differences in white space treatment in the various browsers, this may have to be augmented slightly to get accurate identification of points. It is possible we may want to put in a word or phrase instead of the empty string and identify which occurrence it is to help with white space problems.

The current implementation doesn't support the empty argument "" in string-range, which according to the spec means it should count from the beginning of the region. It also needs to be brought up to be compatible with jdk 1.4 (or 1.5) and to possibly support dom level 3. Also, it is relying on some outdated libraries which have since been folded into other projects or have changed names. I was able to get things running by using some older versions of the libraries. Updating to use the latest Xalan libs may also be a task.

Dependency Graph

Change History

08/23/06 17:51:52 changed by amit

  • keywords set to xpointer.
  • priority changed from unassigned to critical.
  • milestone changed from TBD to september10.

Given the lack of resources on PLoS ONE, this work will be done by the Topaz engineers. This is only for now and if this library is used on a long term basis, will be transferred back to PLoS ONE.

Transferring to Sep10 (though at this stage it is not clear whether this can be done by then).

08/29/06 20:59:14 changed by amit

  • owner changed from somebody to pradeep.

Assigned to Pradeep.

09/01/06 01:09:42 changed by pradeep

  • status changed from new to closed.
  • resolution set to duplicate.

Split into #152 and #153.

10/29/07 21:12:52 changed by

  • milestone deleted.

Milestone september10 deleted