OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] defining xml diff/changes in xml : XUpdate etc

[ Lists Home | Date Index | Thread Index ]


All of this seems to be a bit short of requirements statements and use
cases. I would have thought that different requirements would prompt
different designs. For example:

* must the effect of applying diffs be independent of the order in which
they are applied?

* how important is it to merge two diff files that relate to the same source
to create a merged diff file; and if so, how important is it to be able to
detect and/or resolve conflicts?

* is it ever necessary to apply a diff file D that was defined against a
base file B to a slightly different base file B'? If so, what kind of
differences between B and B' should be tolerated?

* do diff files need to be human-readable?

* do diff files need to be small?

* what kind of changes need to be diff'ed? Do they include, for example,
renaming of nodes? Do they include any bulk changes, such as deleting all
instances of a particular attribute? Do they include changes at the lexical
level, e.g. changing the expansion text of an internal entity? Do they
include DTD changes?

* are there any assumptions about schema validity of the source and/or
target documents?

* are any operations applied to diff files other than (a) applying a diff
file to a base document, (b) merging two diff files?

* What exactly is the real requirement behind the statement that the diff
files must be XML?

Perhaps this is all covered by some kind of unstated assumption "we want it
to work like UNIX diff". But if that were the case, you could use UNIX diff.


Michael Kay
http://www.saxonica.com/


> -----Original Message-----
> From: Rakshan Murthy [mailto:rakshanm@hotmail.com] 
> Sent: 10 April 2006 21:13
> To: andrew.townley@bearingpoint.com; mike@saxonica.com
> Cc: xml-dev@lists.xml.org
> Subject: RE: [xml-dev] defining xml diff/changes in xml : XUpdate etc
> 
> 
> 
> 
> >From: "Andrew S. Townley" <andrew.townley@bearingpoint.com>
> >To: Michael Kay <mike@saxonica.com>
> >CC: 'Rakshan Murthy' <rakshanm@hotmail.com>, xml-dev@lists.xml.org
> >Subject: RE: [xml-dev] defining xml diff/changes in xml : XUpdate etc
> >Date: Mon, 10 Apr 2006 14:38:14 +0100
> >
> >
> >You may have also seen this (courtesy of Sam Ruby's blog) 
> last week.  I
> >only saw it on Friday, but it seems to at least be active and doing
> >something similar.  Maybe you can work with Andy Roberts on it to try
> >and get the features you need.
> >
> >http://andyroberts007.blogspot.com/2006/04/delta-web_03.html
> >
> >ast
> 
> Thanks,
> I found this wiki, and they seem to be looking for the same thing as I
> http://wiki.java.net/bin/view/Projects/CJANXmlDiff
> 
> They point towards Diffxml and its output DUL(Delta Update 
> Language) which I 
> was also considering as an alternative.
> 
> I also found that DUL was submitted as a draft by its author to IETF
> http://www.ietf.org/internet-drafts/draft-mouat-xml-patch-00.txt
> 
> rax
> 
> >
> >On Mon, 2006-04-10 at 12:37, Michael Kay wrote:
> > > I'm not sure you had a response to this.
> > >
> > > XUpdate is pretty dormant. It certainly can't be 
> described as a standard 
> >in
> > > any sense of the word, though it might still do what you want.
> > >
> > > XQuery update extensions are on the way, but not there 
> yet. And it's not 
> >an
> > > XML format, unfortunately.
> > >
> > > Have you considered representing the diffs as an XSLT 
> stylesheet that 
> >does
> > > the transformation from old to new?
> > >
> > > Michael Kay
> > > http://www.saxonica.com/
> > >
> > > > -----Original Message-----
> > > > From: Rakshan Murthy [mailto:rakshanm@hotmail.com]
> > > > Sent: 05 April 2006 21:01
> > > > To: xml-dev@lists.xml.org
> > > > Subject: [xml-dev] defining xml diff/changes in xml : 
> XUpdate etc
> > > >
> > > >
> > > > Hi,
> > > >
> > > > Im looking for a standard for defining xml diffs/changes in
> > > > an xml format
> > > > (which may be used for patching later).
> > > > I've looked at Xupdate, and its quite close to what im 
> looking for.
> > > > http://xmldb-org.sourceforge.net/xupdate/xupdate-wd.html
> > > >
> > > > however, im concerned if this is a "standard", or is 
> widely popular.
> > > > What makes me queasy is that their domain site
> > > > http://www.xmldb.org, is no
> > > > longer theirs (or doesnt seem to be).
> > > >
> > > > If anyone has experience with xml diffs and can point me to a
> > > > relatively
> > > > stable standard, your help is appreciated.
> > > > The icing would be a OSS api that diffs xmls and generates
> > > > this standard.
> > > >
> > > > thanks,
> > > >
> > > > regards,
> > > > rax
> > > >
> > > >
> > > >
> > > > 
> -----------------------------------------------------------------
> > > > The xml-dev list is sponsored by XML.org 
> <http://www.xml.org>, an
> > > > initiative of OASIS <http://www.oasis-open.org>
> > > >
> > > > The list archives are at http://lists.xml.org/archives/xml-dev/
> > > >
> > > > To subscribe or unsubscribe from this list use the subscription
> > > > manager: <http://www.oasis-open.org/mlmanage/index.php>
> > > >
> > > >
> > >
> > >
> > >
> > > -----------------------------------------------------------------
> > > The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> > > initiative of OASIS <http://www.oasis-open.org>
> > >
> > > The list archives are at http://lists.xml.org/archives/xml-dev/
> > >
> > > To subscribe or unsubscribe from this list use the subscription
> > > manager: <http://www.oasis-open.org/mlmanage/index.php>
> >--
> >Join me in Dubrovnik, Croatia on May 8-10th when I will be 
> speaking at
> >InfoSeCon 2006.  For more information, see www.infosecon.org.
> >
> >*************************************************************
> **************************************
> >The information in this email is confidential and may be legally 
> >privileged.  Access to this email by anyone other than the intended 
> >addressee is unauthorized.  If you are not the intended 
> recipient of this 
> >message, any review, disclosure, copying, distribution, 
> retention, or any 
> >action taken or omitted to be taken in reliance on it is 
> prohibited and may 
> >be unlawful.  If you are not the intended recipient, please 
> reply to or 
> >forward a copy of this message to the sender and delete the 
> message, any 
> >attachments, and any copies thereof from your system.
> >*************************************************************
> **************************************
> 
> 
> 






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS