String thing = operandType instanceof MapType ? "map" : "function item"; err = new XPathException( expandMessage("Cannot atomize a " + thing), "FOTY0013"); } else { err = new XPathException( expandMessage("Cannot atomize an element that is defined in the schema to have element-only content"), "FOTY0012");
} else if (((Function)i).isMap()) { XPathException err = new XPathException( expandMessage("Cannot atomize a map (" + i.toShortString() + ")"), "FOTY0013"); err.setIsTypeError(true); err.setLocation(getLocation()); } else { XPathException err = new XPathException( expandMessage("Cannot atomize a function item"), "FOTY0013"); err.setIsTypeError(true); err.setLocation(getLocation());