Ich bin gerade auf ein sehr interessantes Projekt namens ZML gestossen:
Basically, ZML is a markup language with a C-style syntax and lots of syntactic sugar. Furthermore the ZML toolchain provides a ZML to XML compiler, which means that ZML is a convinient way of writing XML. So you could regard it as an alternativ to a feature rich XML editor.
But ZML is more. It is also a technique of code generation, thus an alternativ to Model Driven Architecture. These two aspects fit together when you know that ZML code generation is done with XSLT. Using the ZML syntax instead of the XML syntax for XSLT stylesheets makes it very easy to write a code generation tool whenever approriate. No BNF, flex and bison, no theoretical knowledge about gramar and parser classes. Just some XML, XSLT and XPATH, denoted in a convinent way.
Das hoert sich nach einem interessanten Weg an um XML zu schreiben ohne sich mit den "> <" Zeichen herum plagen zu muessen.
Im Ruby Umfeld findet man auch öfter mal HAML als "kürzere" XML Version die man noch mit dynamischen Sachen anreichern kann:
http://haml.hamptoncatlin.com/
Nutzt eben Leerzeichen als Syntaxelement, aber ansonsten ist der Code der entsteht recht schön anzusehen und das XML das daraus generiert wird bleibt schön valide
Bsp (um die Formatierung zu retten nutz ich Punkte statt leerzeichen):
%ul
..%li Salt
..%li Pepper
becomes:
< ul>
..< li>Salt< /li>
..< li>Pepper< /li>
< /ul>
Danke fuer den Tip. Das werde ich mir bei Gelegenheit mal anschaun. Sieht ja wirklich nett aus.


