This is a single archived entry from Stefan Tilkov’s blog. For more up-to-date content, check out my author page at INNOQ, which has more information about me and also contains a list of published talks, podcasts, and articles. Or you can check out the full archive.

QNames in Content

Stefan Tilkov,

Uche Ogbuji on the usage of QNames in content:

Prefixes are supposed to be insignificant. Users should have flexibility to use whatever prefix, blah blah blah. I’m sorry, but that’s all theoretically nice, but we have practical problems to solve. The fact that the most powerful constructs in XPath depend for their semantics on the whimsy of prefix choices should bother you a bit. The fact that Canonical XML had to abandon the idea of normalizing prefixes should bother you even more. It’s time to just say that xsl means “The XSLT namespace” (yeah, yeah: “what version?” etc.—hard problems would still remain) and that if you choose to use it for a different namespace, you’re technically compliant to namespaces, but you’re asking for a heaping help of trouble, buddy.

That would be a very sad resolution to the problem, but quite possibly the only pragmatic one.

On August 22, 2006 3:06 PM, Uche said:

Yeah, I agree it would be sad. Indeed it’s all very sad, but yeah, I’m not sure I see any other pragmatic way. I think namespaces were gravely wounded by XPath/XSLT (and soon thereafter WXS), and that we should just accept the disability and deal with it in the most direct manner possible.