I can see that xupdate can be a replacement for xsl:
Start with an empty document, then update it into shape, instead of creating
it with xsl.

Or one could use xsl instead of xupdate, creating the whole document again
using both the original and the updates as sources.

However, from an efficiency point of view there will be cases where one is
more suited than the other.

As for combining the two, perhaps we should take a lesson from Unix and keep
each thing as simple as possible and instead make a pipeline of many simple
xslt:s and xupdates when we have a complex problem to solve.

Xalan supports pipes of xslt filters, just combine a series of SAX-sources
and SAX-inputs.

/tobe

> -----Ursprungligt meddelande-----
> Från: Lars Martin [mailto:[EMAIL PROTECTED]
> Skickat: den 11 januari 2002 09:58
> Till: [EMAIL PROTECTED]
> Kopia: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Ämne: 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.=20
> > 
> > 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.
> 
> > 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/
> ----------------------------------------------------------------------
> 
----------------------------------------------------------------------
Post a message:         mailto:[EMAIL PROTECTED]
Unsubscribe:            mailto:[EMAIL PROTECTED]
Contact administrator:  mailto:[EMAIL PROTECTED]
Read archived messages: http://archive.xmldb.org/
----------------------------------------------------------------------

Reply via email to