int elementFP = config.getNamePool().allocate("", name.getNamespaceURI(), name.getLocalName());
nameTest = new NameTest(Type.ELEMENT, elementFP, config.getNamePool());
}
if (schemaType != null) {
int typeFP = config.getNamePool().allocate("", schemaType.getNamespaceURI(), schemaType.getLocalName());
SchemaType type = config.getSchemaType(typeFP);
if (type == null) {
throw new SaxonApiException("Unknown schema type " + schemaType.getClarkName());
}
contentTest = new ContentTypeTest(Type.ELEMENT, type, config);
contentTest.setNillable(nillable);