public NamespaceContext getNamespaceContext() {
// The NamespaceContext returned by the reference doesn't handle the
// implicit namespace bindings (for the "xml" and "xmlns" prefixes)
// correctly
final NamespaceContext parent = super.getNamespaceContext();
return new AbstractNamespaceContext() {
protected String doGetNamespaceURI(String prefix) {
return parent.getNamespaceURI(prefix);
}
protected String doGetPrefix(String namespaceURI) {