When you say ugly, what do you mean: ugly to look at or ugly to implement or
use?
I thought of an alternative, less unattractive syntax for annotations (very
late, I admit). Instead of:
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
[ a:annotation [ "glip glop glorp" ]
We have this:
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
a:annotation { "glip glop glorp" }
So that:
- it looks less like XDuce and more like an XQuery element constructor,
without the element keyword
- it looks more like the rest of RNC, is less verbose
- any namespace-qualified name without an element keyword could be
considered a foreign element in RNC
My apologies for introducing the idea so late, but, well, I had to get it
off my chest.
Mike