1 16 17 package org.apache.taglibs.xtags.xpath; 18 19 20 21 import java.io.IOException ; 22 23 import javax.servlet.jsp.PageContext ; 24 25 import org.dom4j.Node; 26 import org.dom4j.rule.Action; 27 28 34 public class StylesheetValueOfAction implements Action { 35 36 37 private StylesheetTag stylesheetTag; 38 39 public StylesheetValueOfAction(StylesheetTag tag) { 40 this.stylesheetTag = tag; 41 } 42 43 public void run( Node node ) throws Exception { 46 String text = node.getStringValue(); 47 if ( text != null && text.length() > 0 ) { 48 text = ValueOfTag.encode( text ); 49 50 this.stylesheetTag.addOutput( text ); 51 } 52 } 53 } 54 | Popular Tags |