Open bergie opened 12 years ago
For this, we also need to add default language handling in VIE:
var v = new VIE();
v.getLang (); // the language of the document OR "en"
v.setLang("de"); // accepts language codes only in ISO 639-1 format
v.getLang(); // "de"
Now we have two different ways to handle literals:
@language
and@value
This difference makes for messy code. We should implement all literals in the same way, as collections of Literal objects (with subtypes like StringLiteral and UriLiteral).
__toString
methods should be used to allow simple usage.This would allow setting values with:
And getting with: