public Expression compile(Compilation exec, ComponentDeclaration decl) throws XPathException { if (isTopLevel() || reportingCircumstances == IGNORED_INSTRUCTION) { return null; } // if there are fallback children, compile the code for the fallback elements if (validationError == null) { validationError = new XPathException("Unknown instruction"); } return fallbackProcessing(exec, decl, this); } }
/** * Recursive walk through the stylesheet to validate all nodes */ public void validateSubtree() throws XPathException { if (isTopLevel() && forwardsCompatibleModeIsEnabled()) { // do nothing } else { super.validateSubtree(); } }
e = new AbsentExtensionElement(); final XPathException reason = new XPathException(elemName.getDisplayName() + " can only appear at the outermost level", "XTSE0010"); ((AbsentExtensionElement)parent).forwardsCompatibleModeIsEnabled() && parent.getURI().equals(NamespaceConstant.XSLT) && !(e instanceof XSLFallback)) { AbsentExtensionElement temp = new AbsentExtensionElement(); temp.initialise(elemName, elemType, attlist, parent, sequence); temp.setLocation(baseURI, lineNumber, columnNumber); temp.setCompilation(compilation); temp.setIgnoreInstruction(); return temp; if (parent instanceof XSLStylesheet) { if (((XSLStylesheet) parent).getEffectiveVersion() <= 20) { temp = new AbsentExtensionElement(); temp.setCompilation(compilation); temp.setValidationError(new XPathException("Unknown top-level XSLT declaration"), temp = new AbsentExtensionElement(); temp.initialise(elemName, elemType, attlist, parent, sequence); temp.setLocation(baseURI, lineNumber, columnNumber);
(parent instanceof XSLStylesheet) && ((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 );
e = new AbsentExtensionElement(); final XPathException reason = new XPathException(elemName.getDisplayName() + " can only appear at the outermost level", "XTSE0010"); ((AbsentExtensionElement)parent).forwardsCompatibleModeIsEnabled() && parent.getURI().equals(NamespaceConstant.XSLT) && !(e instanceof XSLFallback)) { AbsentExtensionElement temp = new AbsentExtensionElement(); temp.initialise(elemName, elemType, attlist, parent, sequence); temp.setLocation(baseURI, lineNumber, columnNumber); temp.setCompilation(compilation); temp.setIgnoreInstruction(); return temp; if (parent instanceof XSLStylesheet) { if (((XSLStylesheet) parent).getEffectiveVersion() <= 20) { temp = new AbsentExtensionElement(); temp.setCompilation(compilation); temp.setValidationError(new XPathException("Unknown top-level XSLT declaration"), temp = new AbsentExtensionElement(); temp.initialise(elemName, elemType, attlist, parent, sequence); temp.setLocation(baseURI, lineNumber, columnNumber);
(parent instanceof XSLStylesheet) && ((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 );
/** * Recursive walk through the stylesheet to validate all nodes */ public void validateSubtree() throws XPathException { if (isTopLevel() && forwardsCompatibleModeIsEnabled()) { // do nothing } else { super.validateSubtree(); } }
public Expression compile(Executable exec) throws XPathException { if (isTopLevel()) { return null; } // if there are fallback children, compile the code for the fallback elements if (validationError==null) { validationError = new XPathException("Unknown instruction"); } return fallbackProcessing(exec, this); } }
(parent instanceof XSLStylesheet) && ((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 );
/** * Process the attributes of this element and all its children */ public void processAllAttributes() throws XPathException { if (isTopLevel() && forwardsCompatibleModeIsEnabled()) { // do nothing } else { super.processAllAttributes(); } }
public Expression compile(Compilation exec, ComponentDeclaration decl) throws XPathException { if (isTopLevel() || reportingCircumstances == IGNORED_INSTRUCTION) { return null; } // if there are fallback children, compile the code for the fallback elements if (validationError == null) { validationError = new XPathException("Unknown instruction"); } return fallbackProcessing(exec, decl, this); } }
/** * Process the attributes of this element and all its children */ public void processAllAttributes() throws XPathException { if (isTopLevel() && forwardsCompatibleModeIsEnabled()) { // do nothing } else { super.processAllAttributes(); } }
public Expression compile(Executable exec) throws XPathException { if (isTopLevel()) { return null; } // if there are fallback children, compile the code for the fallback elements if (validationError==null) { validationError = new XPathException("Unknown instruction"); } return fallbackProcessing(exec, this); } }
/** * Recursive walk through the stylesheet to validate all nodes * * @param decl * @param excludeStylesheet */ public void validateSubtree(ComponentDeclaration decl, boolean excludeStylesheet) throws XPathException { if (reportingCircumstances == IGNORED_INSTRUCTION || (isTopLevel() && forwardsCompatibleModeIsEnabled())) { // do nothing } else { super.validateSubtree(decl, excludeStylesheet); } }
/** * Recursive walk through the stylesheet to validate all nodes * * @param decl * @param excludeStylesheet */ public void validateSubtree(ComponentDeclaration decl, boolean excludeStylesheet) throws XPathException { if (reportingCircumstances == IGNORED_INSTRUCTION || (isTopLevel() && forwardsCompatibleModeIsEnabled())) { // do nothing } else { super.validateSubtree(decl, excludeStylesheet); } }
/** * Process the attributes of this element and all its children */ public void processAllAttributes() throws XPathException { if (reportingCircumstances == IGNORED_INSTRUCTION) { return; } if (reportingCircumstances == REPORT_ALWAYS) { throw validationError; } if (isTopLevel() && forwardsCompatibleModeIsEnabled()) { // do nothing } else { super.processAllAttributes(); } }
/** * Process the attributes of this element and all its children */ public void processAllAttributes() throws XPathException { if (reportingCircumstances == IGNORED_INSTRUCTION) { return; } if (reportingCircumstances == REPORT_ALWAYS) { throw validationError; } if (isTopLevel() && forwardsCompatibleModeIsEnabled()) { // do nothing } else { super.processAllAttributes(); } }