59. putAttribute

Parameter syntax:

[ '[implicitElement]' ]? [ '[empty]'|'[none]'|'[id]' ]? attribute_name [ attribute_value ]?

This command is only useful to write macro commands.

Adds or replaces attribute attribute_name in explicitly or implicitly selected element if grammar constraining the document allows to do so.

Examples:

putAttribute cols
putAttribute alt "XMLmind logo"
putAttribute [implicitElement] cols
putAttribute [dummy] cols
putAttribute [implicitElement] [id] xml:id