* George Herbert <george.herbert(a)gmail.com> [Wed, 5 Jan 2011 19:52:18
-0800]:
On Wed, Jan 5, 2011 at 7:37 PM, Jay Ashworth
<jra(a)baylink.com> wrote:
> ---- Original Message -----
>> From: "Daniel Kinzler" <daniel(a)brightbyte.de>
>
>> On 05.01.2011 05:25, Jay Ashworth wrote:
>> > I believe the snap reaction here is "you haven't tried to diff
XML,
> > have
you?
>
> A text-based diff of XML sucks, but how about a DOM based
(structural)
diff?
Sure, but how much more processor horsepower is that going to take.
Scale is a driver in Mediawiki, for obvious reasons.
I suspect that diffs are relatively rare events in the day to day WMF
processing, though non-trivial.
That said, and as much of a fan of some sort of conceptually object
oriented page data approach... DOM? Really??
We're not trying to do 99% of what that does; we just need object /
element contents, style and perhaps minimal other attributes, and
order within a page.
DOM manipulation at templates level is not a bad thing. Also that could
be partially unified with parsing because trees are used there as well.
I just hope there is a chance to have XML to wikitext mapping (at least
partially compatible in basic markups).
Dmitriy