1 15 package org.apache.tapestry.script; 16 17 import org.apache.tapestry.util.xml.BaseRule; 18 import org.apache.tapestry.util.xml.RuleDirectedParser; 19 import org.xml.sax.Attributes ; 20 21 28 class IncludeScriptRule extends BaseRule 29 { 30 31 public void startElement(RuleDirectedParser parser, Attributes attributes) 32 { 33 String path = getAttribute(attributes, "resource-path"); 34 35 IncludeScriptToken token = new IncludeScriptToken(path, parser.getLocation()); 36 37 IScriptToken parent = (IScriptToken) parser.peek(); 38 parent.addToken(token); 39 } 40 41 } 42 | Popular Tags |