1 package net.sf.saxon.style; 2 import net.sf.saxon.expr.Expression; 3 import net.sf.saxon.instruct.Executable; 4 import net.sf.saxon.trans.StaticError; 5 import net.sf.saxon.trans.XPathException; 6 7 11 12 public class AbsentExtensionElement extends StyleElement { 13 14 public boolean isInstruction() { 15 return true; 16 } 17 18 21 22 public boolean mayContainSequenceConstructor() { 23 return true; 24 } 25 26 29 30 public void processAllAttributes() throws XPathException { 31 if (isTopLevel() && forwardsCompatibleModeIsEnabled()) { 32 } else { 34 super.processAllAttributes(); 35 } 36 } 37 38 public void prepareAttributes() throws XPathException { 39 } 40 41 44 45 public void validateSubtree() throws XPathException { 46 if (isTopLevel() && forwardsCompatibleModeIsEnabled()) { 47 } else { 49 super.validateSubtree(); 50 } 51 } 52 53 public void validate() throws XPathException { 54 } 55 56 public Expression compile(Executable exec) throws XPathException { 57 58 if (isTopLevel()) { 59 return null; 60 } 61 62 64 if (validationError==null) { 65 validationError = new StaticError("Unknown instruction"); 66 } 67 return fallbackProcessing(exec, this); 68 } 69 } 70 71 | Popular Tags |