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 XslInclude extends XslNode implements XslTopNode { 39 private String _href; 40 41 44 public String getTagName() 45 { 46 return "xsl:include"; 47 } 48 49 52 public void addAttribute(QName name, String value) 53 throws XslParseException 54 { 55 if (name.getName().equals("href")) { 56 _href = value; 57 } 58 else 59 super.addAttribute(name, value); 60 } 61 62 65 public void endElement() 66 throws Exception 67 { 68 _gen.generateInclude(getParent(), _href); 69 } 70 71 76 public void generate(JavaWriter out) 77 throws Exception 78 { 79 } 80 } 81 | Popular Tags |