1 28 29 package com.caucho.xsl.java; 30 31 import com.caucho.java.JavaWriter; 32 import com.caucho.xml.QName; 33 import com.caucho.xsl.XslParseException; 34 35 38 public class XslStripSpace extends XslNode implements XslTopNode { 39 private String _elements; 40 41 44 public String getTagName() 45 { 46 return "xsl:strip-space"; 47 } 48 49 52 public void addAttribute(QName name, String value) 53 throws XslParseException 54 { 55 if ("elements".equals(name.getName())) { 56 _elements = value; 57 } 58 else 59 super.addAttribute(name, value); 60 } 61 62 65 public void endAttributes() 66 throws XslParseException 67 { 68 if (_elements != null) 69 _gen.addStripSpace(_elements); 70 } 71 72 75 public void addChild(XslNode node) 76 throws XslParseException 77 { 78 throw error(L.l("element <{0}> is not allowed in <{1}>.", 79 node.getTagName(), getTagName())); 80 } 81 82 87 public void generate(JavaWriter out) 88 throws Exception 89 { 90 } 91 } 92 | Popular Tags |