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 XslImport extends XslNode implements XslTopNode { 39 private String _href; 40 41 44 public String getTagName() 45 { 46 return "xsl:import"; 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 XslNode node = _gen.generateImport(_href); 69 70 if (node != null) 71 ((XslStylesheet) getParent()).addImport(node); 72 } 73 74 79 public void generate(JavaWriter out) 80 throws Exception 81 { 82 } 83 } 84 | Popular Tags |