Subject: Re: read/write in the same xml file
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 10 Jun 2003 00:39:17 +0100
|
me>then XSLT is not your language of choice. You need a language tha allows
me>updaing of in place XML trees.
> I don't see why the OP doesn't simply do (apologies for the archaic shell
> language):
>
> copy file.xml input.xml
> xslt -in input.xml -xsl stylesheet.xsl -out file.xml
> del input.xml
It depends on the context (which I don't think has been given in any
detail) if file.xml is 10 terrabytes of stuff and you want to change 1
entry, writing a stylesheet to regenerate the whole database with
one entry changed might not be the most efficient approach, and using a
database language or just dom scripting to a writable tree might make
more sense than XSLT.
Me though, I do as you indicate above (although I've never used a
command line that has "copy" and "del" for "cp" and "rm" :-)
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- Re: read/write in the same xml file, (continued)
- abbouh - Mon, 9 Jun 2003 14:12:17 -0400 (EDT)
- Michael Kay - Mon, 9 Jun 2003 16:42:45 -0400 (EDT)
- David Carlisle - Mon, 9 Jun 2003 17:46:39 -0400 (EDT)
- Wendell Piez - Mon, 9 Jun 2003 19:21:29 -0400 (EDT)
- David Carlisle - Mon, 9 Jun 2003 19:39:28 -0400 (EDT) <=
- abbouh - Tue, 10 Jun 2003 06:01:22 -0400 (EDT)
- abbouh - Tue, 10 Jun 2003 11:14:53 -0400 (EDT)
- Américo Albuquerque - Fri, 13 Jun 2003 09:05:26 -0400 (EDT)
- Wendell Piez - Tue, 10 Jun 2003 15:34:20 -0400 (EDT)
|
|