/** * Check whether a namespace uri defines an namespace excluded from the result. * This checks whether the namespace is defined as an excluded namespace on this * or any ancestor node. * * @param uri the namespace URI being tested * @return true if this namespace URI is a namespace excluded by virtue of exclude-result-prefixes * on this element or on an ancestor element */ public boolean isExcludedNamespace(String uri) { if (uri.equals(NamespaceConstant.XSLT) || uri.equals(NamespaceConstant.XML)) { return true; } if (isExtensionNamespace(uri)) { return true; } NodeInfo anc = this; while (anc instanceof StyleElement) { if (((StyleElement) anc).definesExcludedNamespace(uri)) { return true; } anc = anc.getParent(); } return false; }
/** * Check whether a namespace uri defines an namespace excluded from the result. * This checks whether the namespace is defined as an excluded namespace on this * or any ancestor node. * * @param uri the namespace URI being tested * @return true if this namespace URI is a namespace excluded by virtue of exclude-result-prefixes * on this element or on an ancestor element */ public boolean isExcludedNamespace(String uri) { if (uri.equals(NamespaceConstant.XSLT) || uri.equals(NamespaceConstant.XML)) { return true; } if (isExtensionNamespace(uri)) { return true; } NodeInfo anc = this; while (anc instanceof StyleElement) { if (((StyleElement) anc).definesExcludedNamespace(uri)) { return true; } anc = anc.getParent(); } return false; }
/** * Check whether a namespace uri defines an namespace excluded from the result. * This checks whether the namespace is defined as an excluded namespace on this * or any ancestor node. * * @param uriCode the code of the namespace URI being tested * @return true if this namespace URI is a namespace excluded by virtue of exclude-result-prefixes * on this element or on an ancestor element */ public boolean isExcludedNamespace(short uriCode) { if (uriCode == NamespaceConstant.XSLT_CODE || uriCode == NamespaceConstant.XML_CODE) { return true; } if (isExtensionNamespace(uriCode)) { return true; } NodeInfo anc = this; while (anc instanceof StyleElement) { if (((StyleElement)anc).definesExcludedNamespace(uriCode)) { return true; } anc = anc.getParent(); } return false; }
/** * Check whether a namespace uri defines an namespace excluded from the result. * This checks whether the namespace is defined as an excluded namespace on this * or any ancestor node. * * @param uriCode the code of the namespace URI being tested * @return true if this namespace URI is a namespace excluded by virtue of exclude-result-prefixes * on this element or on an ancestor element */ public boolean isExcludedNamespace(short uriCode) { if (uriCode == NamespaceConstant.XSLT_CODE || uriCode == NamespaceConstant.XML_CODE) { return true; } if (isExtensionNamespace(uriCode)) { return true; } NodeInfo anc = this; while (anc instanceof StyleElement) { if (((StyleElement)anc).definesExcludedNamespace(uriCode)) { return true; } anc = anc.getParent(); } return false; }
temp.setValidationError(reason, StyleElement.REPORT_UNLESS_FALLBACK_AVAILABLE); } else if (uriCode == NamespaceConstant.SAXON_CODE) { if (toplevel || temp.isExtensionNamespace(uriCode)) { if (assumedSaxonElement) { } else if (temp.isExtensionNamespace(uriCode) && !toplevel) { actualClass = (Class)userStyles.get(nameCode&0xfffff); if (actualClass==null) {
temp.setValidationError(reason, StyleElement.REPORT_UNLESS_FALLBACK_AVAILABLE); } else if (uriCode == NamespaceConstant.SAXON_CODE) { if (toplevel || temp.isExtensionNamespace(uriCode)) { if (assumedSaxonElement) { } else if (temp.isExtensionNamespace(uriCode) && !toplevel) { actualClass = (Class)userStyles.get(nameCode&0xfffff); if (actualClass==null) {
temp.setValidationError(reason, StyleElement.REPORT_UNLESS_FALLBACK_AVAILABLE); } else if (uriCode == NamespaceConstant.SAXON_CODE) { if (toplevel || temp.isExtensionNamespace(uriCode)) { if (assumedSaxonElement) { } else if (temp.isExtensionNamespace(uriCode) && !toplevel) { actualClass = (Class)userStyles.get(nameCode&0xfffff); if (actualClass==null) {
temp.setValidationError(reason, StyleElement.REPORT_STATICALLY_UNLESS_FALLBACK_AVAILABLE); } else if (temp.isExtensionNamespace(uri) && !toplevel) {
temp.setValidationError(reason, StyleElement.REPORT_STATICALLY_UNLESS_FALLBACK_AVAILABLE); } else if (temp.isExtensionNamespace(uri) && !toplevel) {