*/
public static NamespaceURI create(ExpressionContext context,
String qname,
String defaultURI)
{
PrefixMapper pmapper = context.getPrefixMapper();
String uri;
String name;
// jmw test
// af|breadCrumbs::separator-icon fails, because it thinks that
// af|breadCrumbs is the prefix.
// distinguish between single quotes and double quotes for now.
// jmw test
// shuttleRemoveAllIcon:alias fails. Ignore anything before :alias
int doubleColonIndex = qname.indexOf("::");
int colonIndex = qname.indexOf(':');
boolean isAlias = (qname.indexOf(":alias") > -1);
if (colonIndex > 0 && (colonIndex != doubleColonIndex) && !isAlias)
{
String prefix = qname.substring(0, colonIndex);
uri = pmapper.getNamespaceURI(prefix);
if (uri == null)
throw new IllegalArgumentException(_LOG.getMessage(
"UNDECLARED_PREFIX", prefix));