I'm trying to update a few attributes of a SVG tag in in a Xquery function in BaseX. So far I managed to update one attribute and returning the new node but not multiple attributes.
I tried multiple updates as a variation of the statement described here but whatever I tried it wouldn't work.
declare function page:scaleSVG ($svg as node()*, $scale as xs:integer) as node()* {
return // update a few values of $svg attributes and return it
};
The function above is basically what I want to achieve.