1 16 19 20 package org.apache.xalan.xsltc.compiler; 21 22 23 27 abstract class AttributeValue extends Expression { 28 29 public static final AttributeValue create(SyntaxTreeNode parent, 30 String text, Parser parser) { 31 32 AttributeValue result; 33 if (text.indexOf('{') != -1) { 34 result = new AttributeValueTemplate(text, parser, parent); 35 } 36 else if (text.indexOf('}') != -1) { 37 result = new AttributeValueTemplate(text, parser, parent); 38 } 39 else { 40 result = new SimpleAttributeValue(text); 41 result.setParser(parser); 42 result.setParent(parent); 43 } 44 return result; 45 } 46 } 47 | Popular Tags |