// The list of extension prefixes is in the outermost schema.
String[] prefixes;
XSLogicalParser xsParser = getContext().getXSLogicalParser();
if (xsParser == null) {
// Just syntax parsing, take this schema as outermost instance.
JAXBXsSchema jaxbXsSchema = (JAXBXsSchema) getXsESchema();
prefixes = jaxbXsSchema.getJaxbExtensionBindingPrefixes();
} else {
prefixes = ((JAXBXsSchema) xsParser.getSyntaxSchemas()[0]).getJaxbExtensionBindingPrefixes();
}
for (int i = 0; i < prefixes.length; i++) {