1 28 29 package com.caucho.xsl.java; 30 31 import com.caucho.java.JavaWriter; 32 33 import java.util.HashMap ; 34 import java.util.Iterator ; 35 36 39 public class XslUseAttributeSets extends XslNode { 40 private String _value; 41 42 public XslUseAttributeSets(String value) 43 { 44 _value = value; 45 } 46 47 52 public void generate(JavaWriter out) 53 throws Exception 54 { 55 HashMap <String ,String > set = _gen.getAttributeSet(_value); 56 if (set == null) 57 return; 58 59 Iterator <String > keys = set.keySet().iterator(); 60 while (keys.hasNext()) { 61 String key = keys.next(); 62 63 printAttributeValue(out, key, set.get(key)); 64 } 65 } 66 } 67 | Popular Tags |