[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: XML Diff and Sync
- From: Joel Bender <jjb5@cornell.edu>
- To: Robin LaFontaine <robin@monsell.co.uk>, xml-dev@lists.xml.org
- Date: Wed, 18 Apr 2001 15:06:50 -0400
Robin LaFontaine wrote:
>We have proposed a delta format for XML (see
>http://www.deltaxml.com) which does what you need though it does not
>use Xpath.
Thank you for the reference, and I look forward to working with your
demo. It seems to share a similar flavor with XML Fragment
documents, so where you describe a change like this:
<xhtml:html deltaxml:delta="WFmodify" >
<xhtml:head deltaxml:delta="unchanged" >
</xhtml:head>
<xhtml:body deltaxml:delta="WFmodify" >
<xhtml:table deltaxml:delta="WFmodify" >
<xhtml:tr deltaxml:delta="WFmodify" >
<xhtml:td deltaxml:delta="unchanged" ></xhtml:td>
<xhtml:td deltaxml:delta="unchanged" ></xhtml:td>
<xhtml:td deltaxml:delta="WFmodify" >
<deltaxml:PCDATAmodify>
<deltaxml:PCDATAold>
td 3
</deltaxml:PCDATAold>
<deltaxml:PCDATAnew>
td 3a
</deltaxml:PCDATAnew>
</deltaxml:PCDATAmodify>
</xhtml:td>
</xhtml:tr>
</xhtml:table>
</xhtml:body>
</xhtml:html>
All I really need is something like this:
<PCDATAmodify xpath="html/body/table/tr/td[3]">
td 3a
</PCDATAmodify>
I like the idea that you can use the same document to describe
changes in both directions (old to new and new to old).
Joel