Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Saxon.SetProperty

Sets a property.

Component Version macOS Windows Linux Server iOS SDK
Saxon 15.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ❌ No
MBS( "Saxon.SetProperty"; Name { ; Value } )   More

Parameters

Parameter Description Example Flags
Name The name of the property. "test"
Value The value for the property. Optional

Result

Returns OK or error.

Description

Sets a property.
If you set parameters, please put a Saxon.Clear function call on the beginning of the script to clear any values set by other scripts.

Examples

Try setting property:

Let([
r = MBS("Saxon.SetProperty"; "Hello"; "World");
list1 = MBS("Saxon.PropertyNames");
v = MBS("Saxon.GetProperty"; "Hello");
h = MBS("Saxon.HasProperty"; "Hello")

]; "Keys: " & list1 & ¶ & "Value: " & v & ¶ & "Exists: " & h)

Example result:
Keys: Hello

Value: World
Exists: 1

See also

Created 9th January 2025, last changed 9th January 2025


Saxon.SetParameter - Saxon.Validate