e.processExtensionElementAttribute(StandardNames.EXTENSION_ELEMENT_PREFIXES); } catch (TransformerException err) { e.setValidationError(err, StyleElement.REPORT_ALWAYS); e.setValidationError(err, StyleElement.REPORT_ALWAYS); e.setValidationError(err, StyleElement.REPORT_ALWAYS); ((XSLStylesheet)parent).getVersion().compareTo(BigDecimal.valueOf('2')) <= 0 ) { temp = new AbsentExtensionElement(); temp.setValidationError(new XPathException("Unknown top-level XSLT declaration"), StyleElement.REPORT_UNLESS_FORWARDS_COMPATIBLE ); temp.processDefaultXPathNamespaceAttribute(StandardNames.XSL_XPATH_DEFAULT_NAMESPACE_CLARK); } catch (XPathException err) { temp.setValidationError(err, StyleElement.REPORT_ALWAYS); ((XPathException)reason).setIsStaticError(true); actualClass = AbsentExtensionElement.class; temp.setValidationError(reason, StyleElement.REPORT_UNLESS_FALLBACK_AVAILABLE); } else if (uriCode == NamespaceConstant.SAXON_CODE) { if (toplevel || temp.isExtensionNamespace(uriCode)) { reason = new XPathException( "Unknown Saxon extension instruction: " + localname); temp.setValidationError(reason, StyleElement.REPORT_UNLESS_FALLBACK_AVAILABLE); actualClass = AbsentExtensionElement.class; reason = new XPathException("Extension instructions are disabled");
e.processExtensionElementAttribute(StandardNames.EXTENSION_ELEMENT_PREFIXES); } catch (TransformerException err) { e.setValidationError(err, StyleElement.REPORT_ALWAYS); e.setValidationError(err, StyleElement.REPORT_ALWAYS); e.setValidationError(err, StyleElement.REPORT_ALWAYS); ((XSLStylesheet)parent).getVersion().compareTo(BigDecimal.valueOf('2')) <= 0 ) { temp = new AbsentExtensionElement(); temp.setValidationError(new XPathException("Unknown top-level XSLT declaration"), StyleElement.REPORT_UNLESS_FORWARDS_COMPATIBLE ); temp.processDefaultXPathNamespaceAttribute(StandardNames.XSL_XPATH_DEFAULT_NAMESPACE_CLARK); } catch (XPathException err) { temp.setValidationError(err, StyleElement.REPORT_ALWAYS); ((XPathException)reason).setIsStaticError(true); actualClass = AbsentExtensionElement.class; temp.setValidationError(reason, StyleElement.REPORT_UNLESS_FALLBACK_AVAILABLE); } else if (uriCode == NamespaceConstant.SAXON_CODE) { if (toplevel || temp.isExtensionNamespace(uriCode)) { reason = new XPathException( "Unknown Saxon extension instruction: " + localname); temp.setValidationError(reason, StyleElement.REPORT_UNLESS_FALLBACK_AVAILABLE); actualClass = AbsentExtensionElement.class; reason = new XPathException("Extension instructions are disabled");
e.processExtensionElementAttribute(StandardNames.EXTENSION_ELEMENT_PREFIXES); } catch (TransformerException err) { e.setValidationError(err, StyleElement.REPORT_ALWAYS); e.setValidationError(err, StyleElement.REPORT_ALWAYS); e.setValidationError(err, StyleElement.REPORT_ALWAYS); ((XSLStylesheet)parent).getVersion().compareTo(BigDecimal.valueOf('2')) <= 0 ) { temp = new AbsentExtensionElement(); temp.setValidationError(new XPathException("Unknown top-level XSLT declaration"), StyleElement.REPORT_UNLESS_FORWARDS_COMPATIBLE ); temp.processDefaultXPathNamespaceAttribute(StandardNames.XSL_XPATH_DEFAULT_NAMESPACE_CLARK); } catch (XPathException err) { temp.setValidationError(err, StyleElement.REPORT_ALWAYS); ((XPathException)reason).setIsStaticError(true); actualClass = AbsentExtensionElement.class; temp.setValidationError(reason, StyleElement.REPORT_UNLESS_FALLBACK_AVAILABLE); } else if (uriCode == NamespaceConstant.SAXON_CODE) { if (toplevel || temp.isExtensionNamespace(uriCode)) { reason = new XPathException( "Unknown Saxon extension instruction: " + localname); temp.setValidationError(reason, StyleElement.REPORT_UNLESS_FALLBACK_AVAILABLE); actualClass = AbsentExtensionElement.class; reason = new XPathException("Extension instructions are disabled");
final XPathException reason = new XPathException(elemName.getDisplayName() + " can only appear at the outermost level", "XTSE0010"); e.setValidationError(reason, StyleElement.REPORT_ALWAYS); temp = new AbsentExtensionElement(); temp.setCompilation(compilation); temp.setValidationError(new XPathException("Unknown top-level XSLT declaration"), StyleElement.REPORT_UNLESS_FORWARDS_COMPATIBLE); temp.processStandardAttributes(""); if (temp.getEffectiveVersion() > 20) { temp.setValidationError(new XPathException("Unknown XSLT instruction"), StyleElement.REPORT_STATICALLY_UNLESS_FALLBACK_AVAILABLE); } else { temp.setValidationError(new XPathException("Unknown XSLT instruction"), StyleElement.REPORT_IF_INSTANTIATED); temp.setValidationError(err, StyleElement.REPORT_ALWAYS); temp.processStandardAttributes(NamespaceConstant.XSLT); } catch (XPathException err) { temp.setValidationError(err, StyleElement.REPORT_ALWAYS); ((XPathException) reason).setIsStaticError(true); actualClass = AbsentExtensionElement.class; temp.setValidationError(reason, StyleElement.REPORT_STATICALLY_UNLESS_FALLBACK_AVAILABLE); if (NamespaceConstant.isReserved(uri)) { reason = new XPathException("Cannot use a reserved namespace for extension instructions", "XTSE0800");
final XPathException reason = new XPathException(elemName.getDisplayName() + " can only appear at the outermost level", "XTSE0010"); e.setValidationError(reason, StyleElement.REPORT_ALWAYS); temp = new AbsentExtensionElement(); temp.setCompilation(compilation); temp.setValidationError(new XPathException("Unknown top-level XSLT declaration"), StyleElement.REPORT_UNLESS_FORWARDS_COMPATIBLE); temp.processStandardAttributes(""); if (temp.getEffectiveVersion() > 20) { temp.setValidationError(new XPathException("Unknown XSLT instruction"), StyleElement.REPORT_STATICALLY_UNLESS_FALLBACK_AVAILABLE); } else { temp.setValidationError(new XPathException("Unknown XSLT instruction"), StyleElement.REPORT_IF_INSTANTIATED); ((XPathException) reason).setIsStaticError(true); actualClass = AbsentExtensionElement.class; temp.setValidationError(reason, StyleElement.REPORT_STATICALLY_UNLESS_FALLBACK_AVAILABLE); if (NamespaceConstant.isReserved(uri)) { reason = new XPathException("Cannot use a reserved namespace for extension instructions", "XTSE0800"); temp.setValidationError(reason, StyleElement.REPORT_ALWAYS); } else { reason = new XPathException("Unknown extension instruction " + Err.wrap(elemName.getDisplayName(), Err.ELEMENT), "XTDE1450", temp); temp.setValidationError(reason, StyleElement.REPORT_DYNAMICALLY_UNLESS_FALLBACK_AVAILABLE);