xsl-list
[Top] [All Lists]

Re: Update source.xml

2005-11-17 10:00:22
Hi, Ian,

In a word, no.

In more than a word, XSL cannot modify the source document. The names of 
the documents (particularly source.xml) in that post are probably 
confusing the issue, so let's use different names.

Suppose you have an XML document named X and an XSL transform named Y and 
you want to create a new XML document (Z) by applying Y to X. That'll 
work. But suppose you want Y to change X. That won't work. X is the source 
document and its content can be transformed into a new document by Y, but 
Y can't change the source document, X.

Of course, you can apply Y to X and get Z and then, outside of XSLT, 
replace X with Z.

HTH

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)





"Powell, Ian" <ian(_dot_)powell(_at_)edl(_dot_)uk(_dot_)eds(_dot_)com> 
11/17/2005 10:38 AM
Please respond to
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com


To
<xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
cc

Subject
[xsl] Update source.xml






A couple of months ago there was a thread which updated one xml file from 
another.
(The file to update was source.xml from update.xml)
The xsl ran on source.xml and produced the correct result as xml.

This question will sound stupid but is it possible to update the 
source.xml file directly? (from xsl).   Sorry, but I'm new to this 
stuff...

--
Ian


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>