Data Model - xkp/Doc GitHub Wiki
Everything is not an object in xs, there are basic types. However, everything else is. Aside of idiom-writers's sugar candy, every xml tag you write in your program description represents an object. Objects have names (id) and the compiler makes them available on the global scope for your code;
so, when
<img id="foo"/>
the object foo will be available from all scopes in the application. Such objects can be modified (its prototype, as a javascript fan would say) in code:
instance foo
{
method bar()
...
property asc = true;
}
See instances for more information.