[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Update source.xml

Subject: Re: Update source.xml
From: JBryant@xxxxxxxxx
Date: Thu, 17 Nov 2005 11:00:22 -0600
update source
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.powell@xxxxxxxxxxxxxx> 
11/17/2005 10:38 AM
Please respond to
xsl-list@xxxxxxxxxxxxxxxxxxxxxx


To
<xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
cc

Subject
 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.