1 package com.icl.saxon; 2 import com.icl.saxon.om.*; 3 import com.icl.saxon.expr.*; 4 import com.icl.saxon.output.ProxyEmitter; 5 import com.icl.saxon.pattern.*; 6 import com.icl.saxon.tree.ElementImpl; 7 8 import org.xml.sax.Attributes ; 9 10 import javax.xml.transform.TransformerException ; 11 12 13 20 21 public class StylesheetStripper extends Stripper 22 { 23 24 int xsl_text; 26 29 30 public void setStylesheetRules(NamePool namePool) { 31 xsl_text = namePool.getFingerprint(Namespace.XSLT, "text"); 32 } 33 34 40 41 public boolean isSpacePreserving(int nameCode) { 42 return (nameCode & 0xfffff) == xsl_text; 43 } 44 45 46 } 48 | Popular Tags |