Using the xquery update facility (as implemented in BaseX, for example), I can do this:
copy $target := <my>titles <your> All Yours </your> </my> modify ( delete node $target//your, insert node <mine>All Mine</mine> as last into $target ) return $target
And get this output:
<my>titles <mine>All Mine</mine> </my>
Is it possible to something like that with xidel?
Anonymous
You seem to have CSS turned off. Please don't fill out this field.
That is not implemented
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)
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
Got it; thanks.
Using the xquery update facility (as implemented in BaseX, for example), I can do this:
And get this output:
Is it possible to something like that with xidel?
That is not implemented
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)
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
Got it; thanks.