473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Status of XUpdate; representing multiple edits


Hi,

I am looking to develop a change-logging framework for XML documents,
and am considering adopting XUpdate as a syntax for both making changes
happen and recording what changes have been made to a document.
However, not much seems to have happened to move XUpdate forward in
recent years: is there a reason for that which I should know about? Is
there a better-supported (non-proprietary) format? Also the XML:DB site
appears to have lost the will to live (or at least to add new content)
some time last year.

Anyway, I have written one XSLT stylesheet which compares two documents
("old" and "new"), and generates an XUpdate document ("diffs") which
expresses the differences between them. I am now writing a second XSLT
stylesheet which actually invokes "diff", so that it takes "old" as
input and generates "new" as output. (This relies on use of the Saxon
extension function "evaluate" to turn the XPath expressions in the
XUpdate document into actual XPaths in the XSLT context.)

While struggling with the usual minor problem that it doesn't yet work
(!), it occurred to me that there is potentially a deeper problem with
the design of XUpdate.

If you have multiple updates in a single XUpdate document, you can't
magically apply them all at once. As you apply each edit, you change
the document's structure. By changing its structure, you potentially
invalidate the XPaths in the select attributes of subsequent XUpdate
expressions.

Or is the select attribute for an XUpdate expression meant to take
account of the changes which have already been made to the document by
previous XUpdate commands?

Richard Light
--
Richard Light
SGML/XML and Museum Information Consultancy
ri*****@light.demon.co.uk

Jul 20 '05 #1
0 1141

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ren, Ziheng | last post by:
Hi, i have already found a xindice based java gui. but it appears always a big problem from the xupdate functions. If i tip some commands in and try to execute them, it will appear an exception,...
0
by: alan | last post by:
I want to validate updates to a document made via XUpdate. At this point, I primarily wish to remove the ignorable white space from the updated document as it is updated. I have no experience...
6
by: Melkor Ainur | last post by:
Hello, I'm attempting to build an interpreter for a pascal-like language. Currently, I don't generate any assembly. Instead, I just build an abstract syntax tree representing what I've parsed...
6
by: Ada | last post by:
i have a little bit of issue getting the status bar to work properly. this is what happens now. when the program loaded, the status is "READY..." the code is inside the FORM LOAD. i also...
3
by: Damon | last post by:
I am working on a site in which I would like to have two dropdowns that will allow a user to navigate through the administrative pages of the site. The first would allow the user to choose the...
6
by: Andy Fish | last post by:
Hi, I've RTFM'd in vain for some named constants in the asp.net framework representing the HTTP error codes - the equivalent of Java's HttpServletResponse.SC_NOT_FOUND for 404 etc. All the...
5
by: smitacharya | last post by:
Hi, I am trying to convert the text on status bar into hyperlink. Is there a way to do so? Thank you in advance. -Smita
1
by: rider0375 | last post by:
Having some major issues... Racking my brain. Also it is worthy to note as of 3 weeks ago i have 0 experience with MySQL. So anyway.. HOW DO YOU DO IT?? hehe - I can get multiple services...
9
by: Ethan Strauss | last post by:
Hi, I have a web service which is doing a lot of processing and taking 4-5 minutes to do so. The processing is split into several discrete steps and I would like for the service to be able to tell...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.