1 package com.icl.saxon.style; 2 import com.icl.saxon.tree.AttributeCollection; 3 import com.icl.saxon.*; 4 import com.icl.saxon.expr.*; 5 import javax.xml.transform.*; 6 7 import java.io.*; 8 9 12 13 public class XSLFallback extends StyleElement { 14 15 boolean active; 16 17 21 22 public boolean isInstruction() { 23 return true; 24 } 25 26 30 31 public boolean doesPostProcessing() { 32 return false; 33 } 34 35 39 40 public boolean mayContainTemplateBody() { 41 return true; 42 } 43 44 public void prepareAttributes() throws TransformerConfigurationException { 45 AttributeCollection atts = getAttributeList(); 46 for (int a=0; a<atts.getLength(); a++) { 47 int nc = atts.getNameCode(a); 48 checkUnknownAttribute(nc); 49 } 50 } 51 52 public void validate() throws TransformerConfigurationException { 53 checkWithinTemplate(); 54 } 55 56 public void process(Context context) throws TransformerException { 57 if (((StyleElement)getParentNode()).validationError!=null) { 58 processChildren(context); 59 } 60 } 61 } 62 63 | Popular Tags |