MOF <--> XML, UML <--> XHTML

January 7, 2005

Don Box has written a response posting after our discussion about DSLs and UML. A point I only noticed during that discussion was that there is in fact a very nice analogy with MOF/UML and XML/XHTML — with a lot of arguments that could easily be interchanged between the two domains:

I’m sure there are many more similarities that I didn’t think of. It’s also interesting to take a look at an old posting by Tim Bray:

Here’s the real dirty secret; every time you cook up your own tag-set, you lose interoperability. The deep semantics that XML tags are labels for can’t be captured in any one of a schema or a write-up or lunchroom chats or running code; they need all of these things. (The notion, inherent in the phrase “custom schemas”, that a schema captures the essence of a language, is just totally wrong). The lesson is, to the extent that you can use a language that someone else already wrote, you win.

Tim is talking about Office document formats, but obviously the reasoning works for the DSL/MOF/UML debate as well.

About

This page contains a single entry from Stefan Tilkov's Random Stuff posted on January 7, 2005 9:23 AM. The previous post in this blog was Stallmann, Free Software and Responsibility. The next post in this blog is Java-Programmierer. Many more can be found on the main index page or by looking through the archives.

Comments