Given a particular node, is there a way to change its name, change or add an attribute, and change or add an attibute value?
So, for example, move from
You can run a function over all nodes with the transform function (which I need to be rename eventually, since xpath 3.1 adds a transform function which is completely unrelated to my old function. might call it for-each-node)
Given a particular node, is there a way to change its name, change or add an attribute, and change or add an attibute value?
So, for example, move from
to
Thanks.
You can run a function over all nodes with the transform function (which I need to be rename eventually, since xpath 3.1 adds a transform function which is completely unrelated to my old function. might call it for-each-node)
https://github.com/benibela/xidel/issues/45
https://sourceforge.net/p/videlibri/mailman/videlibri-xidel/thread/08529395-19ff-a8f9-7865-7b2cc88f9b76%40xs4all.nl/#msg36903285
https://en.wikibooks.org/wiki/XQuery/Filtering_Nodes
Someone made a library module with functions for renaming, insertion, etc.:
https://github.com/benibela/XQuery-XML-Memory-Operations#pure-xquery-31
Although currently there is something wrong with the namespace handling.
Got it; thanks.