Re: [xsl] Update source.xml

Subject: Re: [xsl] Update source.xml
From: JBryant@xxxxxxxxx
Date: Thu, 17 Nov 2005 11:00:22 -0600
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.


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

"Powell, Ian" <ian.powell@xxxxxxxxxxxxxx> 
11/17/2005 10:38 AM
Please respond to


[xsl] Update source.xml

A couple of months ago there was a thread which updated one xml file from 
(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 


Current Thread