by nwellnhof · 8y ago · 0 comments
Another strength of XML is support for mixed content which seems rather awkward in {mark}. The following
<p>Some <b>bold</b> text</p>
apparently needs to written as {p 'Some' {b 'bold'} 'text'}
It would be more honest to mark support for mixed content as "verbose" in the feature table.Besides, the name {mark} seems like a bad idea. How could you find relevant results when searching for {mark} using a search engine?
XML Namespace seems to have a lot issues, thus Mark does not want to enforce something exactly following it.
Namespace in Mark, currently, is left upto the application user to define it.
We might be able to come up with a better way to define namespace.
As for the name, you can just use Mark. I use '{mark}' as an alternative name, to make it more graphical, more impressive.
XML Namespaces is syntactic vinegar.
Less is more.
Ok sure, but does it have schematron,rng, or some sort of validation? How about transformations? Xpath?
There's already a transformation library - Mark Template (https://github.com/henry-luo/mark-template) in beta release.
Mark at the moment supports CSS selector. I'm also thinking about a new Mark-specific selector.
Mark is very new. A lot to be done!
FWIW, I would suggest avoiding the (IMO) mistake of using your markup language for the schema.
E.g. like json-schemas where we need a "properties" map, "type": "string" (how many times do I have to type "type"), all sorts of syntactical overhead.
Personally, I think IDLs are much cleaner, as you can design a purpose-specific grammar. More work up front, and you don't get a parser for free, but again personally I think it's more pleasant in the long-run for developers to read and write.
Granted, not sure how that jives with your lisp/etc. way of thinking, but my two cents.
Good luck!
While it would be cool to have something that was like JSON but could deal with complex documents, I also don't see how this is a huge improvement over XML.