Sorry if I'm repeating. (It seems my previous reply didn't make it to mailing list)
> -----Original Message----- > From: Mikhail Grushinskiy [SMTP:[EMAIL PROTECTED] > Sent: Friday, January 11, 2002 10:22 AM > To: Lars Martin > Cc: Grushinskiy, Mikhail, ALVAP; [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: Is there xml-diff which produces output in xupdate? How can I mix > xupdate and xsl? > > Here is my use case (see below) > > ----- Original Message ----- > From: "Lars Martin" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Friday, January 11, 2002 3:57 AM > Subject: Re: Is there xml-diff which produces output in xupdate? How can I > mix xupdate and xsl? > > > > On Fri, 11 Jan 2002 04:30:20 +0100 (CET) you wrote: > > > > > From [EMAIL PROTECTED] Fri Jan 11 04:30:20 2002 > > > Return-Path: <[EMAIL PROTECTED]> > > > From: "Mikhail Grushinskiy" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Cc: "Grushinskiy, Mikhail, ALVAP" <[EMAIL PROTECTED]> > > > Subject: Is there xml-diff which produces output in xupdate? How can I > mix xupdate and xsl? > > > Date: Thu, 10 Jan 2002 22:23:05 -0500 > > > MIME-Version: 1.0 > > > > > > Please join the XUpdate Developer list for your questions. Otherwise > > you cannot send through the mailing lists. Point your browser to > > http://www.xmldb.org/projects.html for detailed information how to > > subscribe. Thanks. > > > > > > > I have couple questions regarding XML updating, and I thought there = > > > could be some > > > people on this mailing list who could help me. > > > > > > Question 1. > > > > > > Regular UNIX diff command is capable of producing output which you can = > > > apply to one > > > file and get another as a result. (it can be sed script of file for = > > > patch). > > > > > > I wonder is there any analog for this in XML world?=20 > > > > > > I'm looking for a program (preferably in Java) to generate diff in XML = > > > (XUPDATE) between > > > two XML files. > > > > > > I should be able to run it using some xupdate processor on one of the = > > > input files > > > to get another. ( I guess it's the criteria that the diff is correct). > > > > The only tool I'm aware of is XMLDiff (see at > > http://www.xmldb.org/xupdate/resources.html), but it is written in Python. > > XMLDiff supports XUpdate outputs. I'm not sure if it also supports or > > provides a "patch" tool. > > > > Somewhere deep in the Infozone sources (http://www.infozone-group.org) > > we managed to fix the "treediff" package in Apache/Crimson and to > > patch it to use XUpdate (Lexus) commands. This package is Java based > > but I'm not sure if it is still available. > > > > > Question 2. > > > > > > Can I embed xupdate into xsl? In other words how can I use XUPDATE from > = > > > within XSL template? > > > I need to be able to update my XML document during XSL transformation. > > > > You need to update a document during transformation? Sounds rather > > strange to me?! Can you give us a use case, please. > > > > XSL stylesheet is used on a server side to generate HTML > interface for editing XML file. XSL stylesheet is called by a servlet > which passes parameters to it (parameters from HTML form submission, etc) > > You can think about XSL in this case as a some form of CGI script > specialized on working with XML files. > > XSL can do all read-only functions on XML prefectly, but it is limited > to read-only operations. > > For me it means that I have to implement all write operations in the servlet > code. > > If I could embbed XUPDATE into XSL I could make the servlet completely > generic, and put all application specific part into XSL. > > I want to be able to treat XSL stylesheet as CGI script for read-write > operations > on XML file. > > XUPDATE matches all my needs for editing XML documents. > The problem that I cannot mix it with XSL, i.e. I cannot write XSL page> > which, for instance, deletes a node from XML document and generates > HTML page for user with confirmation message. > > I don't know if it is a strange use case or not. So far it makes sence for > me... :) > > Thanks, > Mikhail Grushinskiy > > > > Is it possible to plug in lexus into one of the XSL processors as XALAN? > > > Well I guess the question is more how actually do so than the = > > > possibility. It seems to be possible for me... > > > > -- > > ______________________________________________________________________ > > Lars Martin mailto:[EMAIL PROTECTED] > > SMB GmbH http://www.smb-tec.com > > ---------------------------------------------------------------------- Post a message: mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED] Contact administrator: mailto:[EMAIL PROTECTED] Read archived messages: http://archive.xmldb.org/ ----------------------------------------------------------------------