Assembly for XML
xembly.org
xembly.org
I can imagine some poor sap who has not yet been born getting his first job in programming around that time. "Yeah, we don't actually do VR code modelling here, so you have to type. Fortunately there's not a lot of typing for this particular job. Your task is to maintain these assembly scripts. They generate a really complicated old text document format, which is then fed to a big old server in our original data center, which is now completely dark apart from this one machine... It's running something called AIX. Nobody knows what that shit is, so don't execute any commands that are not on the safe list."
Don't get me wrong, I certainly am not fond of XSLT, its programmatic fundamentals were certainly lacking (technically there, practically a pain in the ass) and the implicit nature of the "current node" always weirded me out, but the very descriptive match/transform of XSLT was reasonably great, any not-too-badly-written stylesheet would show the output structure shine through.
If I wanted something to replace XSLT, I'd take adding XLST-type (match-and-transform) capabilities to a general-purpose language, not attempting to extract a fucked-up version of a jQuery DOM manipulation chain.
Not really. It may look more familiar if you can only think procedurally.
(1) XSLT (2) Regular programming language e.g. Java / .NET and use the XML libraries to build the document.
Also with the navigation e.g. UP; it looks hard to maintain.
I can imagine production code ending up with:
UP; UP; UP; UP; UP;
A simple change to the XML structure and this will break so easily.
so you could easily PUSH the current node
dive deep deep deep deep (and even have no problem adding more later)
then POP the original location back.
But if you are only doing very simple stuff that you could do quite simply in XSLT anyway then it is probably fine.
Although XSLT may be preferable anyway due to tooling support.
Head explodes
Oh, never mind.
It was very strange for this to use the term "directive" for the core instructions used in the language.
In actual assembly, the term (http://en.wikipedia.org/wiki/Assembly_language#Assembly_dire...) is used for meta information, i.e. the directives are to the assembler (the tool converting your source to a program), not part of the resulting program as such. This created a huge disconnect for me, and I stopped reading.
If I'm not mistaken, Autodesk Maya for examples does not store the DAG tree, but the operations done on objects as commands (tcl-like syntax (MEL script)).
So while I'm not entirely sure of its usefulness, I've found situations where this might be helpful, but need to explore it more.
Also for conversion from XML to other things and vice versa...