21. set-property

set-property(name, value, node?)

In specified node, set property having specified name to specified value. Parameter name is a string representing an XML qualified name. Parameter node defaults to the context node.

A property is an application-level attribute which can be set on all kind of nodes (that is, not only on elements) and which is not serialized.


set-property("hidden", "yes");

namespace my="urn:x-acme:namespace:local";

set-property("my:status", "DRAFT", /);