我正在尝试在 BaseX 的 Xquery 函数中更新 SVG 标记的一些属性。到目前为止,我设法更新了一个属性并返回了新节点,但没有返回多个属性。
我尝试了多次更新作为此处描述的语句的变体,但无论我尝试了什么都行不通。
declare function page:scaleSVG ($svg as node()*, $scale as xs:integer) as node()* {
return // update a few values of $svg attributes and return it
};
上面的功能基本上就是我想要实现的。