English 中文(简体)
如果简单地将超文本处理,是否对结构化文件,如超文本进行业务改造?
原标题:Does operational transformation work on structured documents such as HTML if simply treated as plain text?

《谷歌波议定书》的FAQ说,[超文本]“无必要特性”和“超文本”使得极难(甚至不可能)的OT(业务变革)......? 为什么如此? 如果将超文本简单地作为简单文本处理,然后应用直线,会产生什么问题?

  1. http://www.waveprotocol.org/faq#TOC-What-s-the-XML-schema-for-waves-Why
问题回答

我在此假定你们理解塔伊塔的基础。 采用超文本自动取款权作为直言语的主要问题是将tag合为html。 举例说,我们的文件如下:

Hello world

于是,艾丽斯决定,世界应当大胆:

Hello <b>world</b>

可以用双倍加的操作方式,以图示:

Edit A: Keep 6 : Insert "<b>" : Keep 5 : Insert "</b>"

如果鲍勃决定,世界在看到艾丽斯·塞迪奇之前就应该保持平静,他会补充说,这一行动。

Edit B: Keep 6 : Insert "<i>" : Keep 5 : Insert "</i>"

如果服务器在Alice s之后收到Bob s edit,就必须将B改为A。

保持报表不变,但“改为”可改为“......”:插入“”或插入“......”:通常,服务器将配置起来,在头版后再安装。

Edit B : Keep 6 : Keep 3 : Insert "<i>" : Keep 5 : Keep 3 : Insert "</i>"

在这方面,问题变得显而易见。 将A当时的B适用于原体,使无效的html:

Hello <b><i>world</b></i>

从理论上讲,可以通过不同的预设和职位来解决这一问题,但是,对于更复杂的例子来说,这将产生美分,有可能涉及所有变革的完整文件扫描。

正如其他答复所指出的,可以避免使用带外说明+平原案文。 在学术论文中,我只看到另一种做法,即把XML结构作为树,并用OT业务添加,删除,例如:

There are approaches in OT that support SGML (superset of XML), but there are no implementations. Therefore, it is not impossible! Though, I agree, OT is not the best approach to enable XML. This is because OT was designed for linear data structures. But HTML/XML is much more complex: it has attributes, and it is built like a tree. The fact that it is a tree is solvable, but the attributes - which is realized as an ordered associative array - are not supported by OT. Simply because associative arrays are not supported by OT (at the moment). The approach above actually recommends to treat the attributes as a string: E.g. "id= myid value= mystuff " But you can easily break the whole syntax of your attributes-string , when one user deletes all attributes, and another one inserts a " character directly after "mystuff". This could resolve in some div tag that looks like this <div ">, which is not valid syntax.

愿您:

欧研中心是一个旨在支持XML的项目,它使我知道死亡。 但是,它采用一种OT办法。 由于某种原因,不可能进行洗衣——只能是xml元素。

谷歌驱动SDK支持像图表一样的数据结构。 然而,这是专有的,没有人知道它是如何运作的。

I am developing a framework that supports arbitrary data structures. Currently, Text, Json, XML, and HTML are supported. It has a different approach: check it out: Yatta!

BTW:波波议定书和Eric Drechsel描述的是塔里的“说明”。 它通常被用来支持丰富的案文。





相关问题
How to lock pages in memory using WinAPI?

I need to prevent application s memory pages from being swapped out of RAM on Windows. Is there a WinAPI function equivalent of POSIX mlockall() to achieve that?

MS Chart Scaleview & Threading

I have taken the example from the samples off the microsfot website. The example is the realtime Date&Time for C#. The example works perfectly when using a short distance and basically running it ...

Real time price x quantity calculator

I m using ASP.NET and a Repeater control to display my data. The data I have is in stored in a List. How would I implement a simple calculator that is affected in real time? Would I have to use AJAX, ...

Whats the learning curve for Lustre/Scade

I gotta take a seminar this year in my graduate level course which later will get converted into a two year project. I am a developer with extensive experience in Java, Ruby, PHP, Python etc. I was ...

Real time collaborative use interface on the web [closed]

I m wondering what the technologies and best practices are behind real time collaboration in web interfaces. An example of this is of course Google Wave. Another is PivotalTracker.com. I m ...

热门标签