[jdom-interest] Reading the xml:base attribute

Michael Kay mike at saxonica.com
Thu Jan 6 10:45:59 PST 2005


 
> Currently, create a Namespace instance that maps a bogus 
> prefix to the URI
> 
>     getAttribute(localName, Namespace.getNamespace("bogus", 
> "someuri"));
> 

But this is where we started: the bogus prefix has to be "xml" if and only
if the URI is the XML namespace - so I need conditional logic to allocate a
valid bogus prefix, which then plays no part in the logic for finding the
attribute.

If that's what I have to do, so be it - but it seems a poor API design.

Michael Kay



More information about the jdom-interest mailing list