var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: how to rename XML attribute?
How to rename xml attribute for all xml data in one table
I want to rename 'id' to 'term_id'
so that my new xml data will be look like this
This is my basic code which I used to rename XML tag from definision to definition .
Which part do I have to alter which code above to rename attributes.
set term = xmlquery('copy $new := $TERM
modify( for $j in $new/term/definision
return do rename $j as "definition")
return $new' );
Did you have a chance to look at examples in the manual, particularly the XPath notation for attributes?