← Prev in month ← Prev in thread
Next in thread → Next in month →

early thoughts on OT and XML

From
Patrick Durusau <>
Date
2016-01-13T22:40:43+00:00
ID
Thread
early thoughts on OT and XML
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greetings!

Great conversation today on the use of OT and XML for ODF.

The use of OT with linear systems (character offset) makes sense
because it isn't hard to determine intersection of character positions
and therefore conflict of changes, along with re-ordering the changes
to enable the most changes possible.

Not to mention re-writing the changes should earlier changes change
their offsets into the document.

What I am puzzling over (after searching for implementations of OT
with XML) is why XPath statements don't appear to fulfill a similar role
?

I have attached a file that has all the unique (element) XPaths from
part 3 of the current draft. There are 201 unique XPaths. That is
where you see:

office:document-content/office:body/office:text/text:list/text:list-item
/text:p

There are any number of text:p elements but they differ only by their
position.

Thus,
office:document-content/office:body/office:text/text:list/text:list-item
/text:p[1]

is a different text:p from

office:document-content/office:body/office:text/text:list/text:list-item
/text:p[10]

Of course, for recording changes, we could collapse
office:document-content/office:body/office:text to a single variable,
$text.

For comparison/conflict purposes, isn't it sufficient to compare the
XPaths supplemented with their location predicates?

I suppose the other difficulty is the implied requirement that
collaboration or at least the representation of collaboration be in
real time as well.

For most simple cases that should not be an issue and where conflicts
do occur, the author has to resolve the conflict. Yes?

More to follow.

Hope everyone is having a great week!

Patrick

PS: Attributes are not show so I need to generate a listing of them as
well. There's another element/attribute display that I remember from
years ago, will try to re-create or run it down.


- -- 
Patrick Durusau

Technical Advisory Board, OASIS (TAB)
OpenDocument Format TC (OASIS), Project Editor ISO/IEC 26300
Co-Editor 13250-5 (Topic Maps)

Another Word For It (blog): http://tm.durusau.net
Homepage: http://www.durusau.net
Twitter: patrickDurusau

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJWltJoAAoJEFPGsgi3MgycFUIP/iANJwVmZBW8vduGO6+++P7u
FuOcaW4l0d19Lw6cj087hWTuQh5THKJuhbhTdzoDCutDH24yapg/KLLXbpoBdFeq
1Cnlqepk+5axZOJHGKjNAbngC8Uh1g27I/K66X/3gWQKrEMSeRtyPfxy2l9mHjn8
ElfFLCT8v2tPRRW3nBdg86LAlEiZDtM42K1g1Bm90uObLd3WgtU1ARGP9ExP8yhx
Saui9QR3Bd91m4yq3y+w3PCNtbmBSUuZqCxxugMi6eou65advpaoMWYKSXXuESYn
UuSrdM9fLZVZaiAI2+E24VZ7kc5ditl7R0qSmqk9h5pcdJv24VHJV/5EvlzRUzmj
OW0E1qEjGhFO3xTW3qc6L5NnpmOhYBCcUdxh75PigfoEBzBGzKA4bIMq6WFaktwu
O0eTEPn+QvVXurxnocN1qhIjgSEslwTbMVSu7QK3+oJAMuIiTDT4ECoq7nMFns71
nnpbJRMSkGnn79gSp9Sxr2OMYCF2hnl3l4lS+EEulRiTdlCTp4NO9Y2u8Ktgj+3R
ZF+aKto6Uw6xouOHRBceD/9i+nvMP1vR1wdZRqCCTMuSX9LBGtqfTFFKI2/LFrYH
Qbj45D9plLL1XS0bo3qf1VSf0k1RusFT4UesxeBPLPF1SAEplPpFV81uw3HtGRNW
L5xULvPWSWwPIRv2H/PC
=JEDk
-----END PGP SIGNATURE-----
← Prev in month ← Prev in thread
Next in thread → Next in month →