on Tuesday 13 July 2010 Jochen Schaefer wrote:
I would like to replace a tag and its whole content from modified.xml e.g. partitioning by a partitioning tag from a second xml.file. I don't want to merge it - it should be simple replaced.
I tried xsltproc with several parameters but it didn't work like I need it.
I started with below line and played with replace, dontmerge parameters and changed the with file and the modified.xml. But still not successful. xsltproc --novalid --param with "'snippet.xml'" --param replace "'false'" --param dontmerge "'partitioning'" --output out.xml /usr/share/autoinstall/xslt/merge.xslt modified.xml
I don't think merge.xslt can handle that. You'd have to write your own xslt file but because you say you don't know anything about xslt, you should split it into 3 xml files. 2 times partitioning and one all_the_rest.xml Then merge the correct partitioning into the all_the_rest.xml with merge.xslt -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug listening to: "New World Order" by The Retrosic -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org