The parser can export an API for converting QNames to UniversalNames,
which allows you to make the match. The real problem is more serious:
as long as the same prefix can map to different namespaces in
different part of the document, stylesheets that depend on prefixed
names don't work. If a document maps the "foo" prefix to multiple
namespaces, then in CSS1, if you have a rule:
foo:p {indent 1em}
just which foo:p is that? It has to be both, eliminating the
whole utility of the local prefix.
Block-structured prefix defining (as opposed to block-structured
prefix defaulting) just isn't very useful, because too many
other tools assume that identical GIs imply identical semantics.
-- John Cowan http://www.ccil.org/~cowan cowan@ccil.org You tollerday donsk? N. You tolkatiff scowegian? Nn. You spigotty anglease? Nnn. You phonio saxo? Nnnn. Clear all so! 'Tis a Jute.... (Finnegans Wake 16.5)