1 package net.sf.saxon.trace; 2 3 import net.sf.saxon.om.NamespaceConstant; 4 import net.sf.saxon.style.StandardNames; 5 6 9 10 public class XSLTTraceListener extends AbstractTraceListener { 11 12 15 16 protected String getOpeningAttributes() { 17 return "xmlns:xsl=\"" + NamespaceConstant.XSLT + '\"'; 18 } 19 20 24 25 protected String tag(int construct) { 26 if (construct < 1024) { 27 return StandardNames.getDisplayName(construct); 28 } 29 switch (construct) { 30 case Location.LITERAL_RESULT_ELEMENT: 31 return "LRE"; 32 case Location.LITERAL_RESULT_ATTRIBUTE: 33 return "ATTR"; 34 case Location.LET_EXPRESSION: 35 return "xsl:variable"; 36 case Location.EXTENSION_INSTRUCTION: 37 return "extension-instruction"; 38 case Location.TRACE_CALL: 39 return "user-trace"; 40 default: 41 return null; 42 } 43 } 44 45 } 46 47 48 | Popular Tags |