Re:How to Avoid Being Called a Bozo When Producing XML (2005)
by lmm on Monday August 01, 2016 @08:35AM
(#12201850)
OK, I guess that takes things a level up. I don't like that kind of interspersed style and I don't think incomplete documents should be the same kind of thing as complete ones (e.g. one can't meaningfully validate your first example, because what if the "whatever" is an element that has to be present exactly once). But I can see that if you want to write things this way then namespaces help.
Re:How to Avoid Being Called a Bozo When Producing XML (2005)
by erlehmann_ on Tuesday August 02, 2016 @06:36AM
(#12208929)
“I don't like” seems to be an æsthetic argument, not a technical one.
Or you may want to extend your text format with, say, literate programming and add code fragments and files. In my homegrown system it's like that:
My text system already has a notion of captions so there's no need to add my own "literate:caption" here. Yet the other two "literate" elements are new an unique. Also, using a namespace here ensures that I'm sure not to have a clash if the base system adds their own "fragment" or "code" blocks.