chickadee » sxpath » sxml:set-attr

sxml:set-attr obj attrprocedure
sxml:set-attr! obj attrprocedure

Returns SXML element obj with changed value of attribute attr. If there is no such attribute the new one is added.

attr is a list like it would occur as a member of an attribute list: (attr-name attr-value).