1 package com.icl.saxon.style; 2 import com.icl.saxon.*; 3 import com.icl.saxon.expr.*; 4 import com.icl.saxon.trace.*; import javax.xml.transform.*; 6 import org.w3c.dom.Node ; 7 import java.io.*; 8 9 13 14 public class AbsentExtensionElement extends StyleElement { 15 16 19 20 public boolean mayContainTemplateBody() { 21 return true; 22 } 23 24 public void prepareAttributes() throws TransformerConfigurationException { 25 } 26 27 public void validate() throws TransformerConfigurationException { 28 } 29 30 public void process(Context context) throws TransformerException { 31 if (!(isTopLevel() && forwardsCompatibleModeIsEnabled())) { 32 throw validationError; 33 } 34 } 35 } 36 37 | Popular Tags |