1 package com.icl.saxon.sql; 2 import com.icl.saxon.*; 3 import com.icl.saxon.style.*; 4 import com.icl.saxon.expr.*; 5 import org.xml.sax.SAXException ; 6 import org.xml.sax.AttributeList ; 7 import java.sql.*; 8 import javax.xml.transform.TransformerException ; 9 import javax.xml.transform.TransformerConfigurationException ; 10 11 12 15 16 public class SQLColumn extends XSLGeneralVariable { 17 18 22 23 public boolean isInstruction() { 24 return false; 25 } 26 27 31 32 public boolean mayContainTemplateBody() { 33 return false; 34 } 35 36 public void validate() throws TransformerConfigurationException { 37 if (!(getParentNode() instanceof SQLInsert)) { 38 compileError("parent node must be sql:insert"); 39 } 40 } 41 42 public void process( Context context ) { 43 44 } 45 46 public String getColumnName() { 47 return getAttributeValue("", "name"); 48 } 49 50 public Value getColumnValue(Context context) throws TransformerException { 51 return getSelectValue(context); 52 } 53 54 } 55 56 | Popular Tags |