1 package com.icl.saxon.style; 2 import com.icl.saxon.tree.AttributeCollection; 3 import com.icl.saxon.*; 4 import javax.xml.transform.*; 5 6 7 8 11 12 public class XSLOtherwise extends StyleElement { 13 14 public void prepareAttributes() throws TransformerConfigurationException { 15 AttributeCollection atts = getAttributeList(); 16 for (int a=0; a<atts.getLength(); a++) { 17 int nc = atts.getNameCode(a); 18 checkUnknownAttribute(nc); 19 } 20 } 21 22 26 27 public boolean doesPostProcessing() { 28 return false; 29 } 30 31 35 36 public boolean mayContainTemplateBody() { 37 return true; 38 } 39 40 public void validate() throws TransformerConfigurationException { 41 if (!(getParentNode() instanceof XSLChoose)) { 42 compileError("xsl:otherwise must be immediately within xsl:choose"); 43 } 44 } 45 46 public void process(Context context) throws TransformerException 47 { 48 processChildren(context); } 50 51 } 52 53 | Popular Tags |