Lines 25-30
Link Here
|
25 |
import java.io.IOException; |
25 |
import java.io.IOException; |
26 |
import java.io.InputStream; |
26 |
import java.io.InputStream; |
27 |
import java.io.OutputStream; |
27 |
import java.io.OutputStream; |
|
|
28 |
import java.io.PrintWriter; |
28 |
import java.util.Vector; |
29 |
import java.util.Vector; |
29 |
import java.util.Enumeration; |
30 |
import java.util.Enumeration; |
30 |
import javax.xml.parsers.ParserConfigurationException; |
31 |
import javax.xml.parsers.ParserConfigurationException; |
Lines 240-245
Link Here
|
240 |
final String[] pair = (String[]) outputProperties.elementAt(i); |
241 |
final String[] pair = (String[]) outputProperties.elementAt(i); |
241 |
transformer.setOutputProperty(pair[0], pair[1]); |
242 |
transformer.setOutputProperty(pair[0], pair[1]); |
242 |
} |
243 |
} |
|
|
244 |
if ((traceGeneration || traceSelections || traceTemplates |
245 |
|| traceTemplateChildren) |
246 |
&& (transformer instanceof org.apache.xalan.transformer.TransformerImpl)) |
247 |
{ |
248 |
PrintWriter traceWriter = new PrintWriter(System.err, true); |
249 |
org.apache.xalan.trace.PrintTraceListener tracer = |
250 |
new org.apache.xalan.trace.PrintTraceListener(traceWriter); |
251 |
tracer.m_traceGeneration = traceGeneration; |
252 |
tracer.m_traceSelection = traceSelections; |
253 |
tracer.m_traceTemplates = traceTemplates; |
254 |
tracer.m_traceElements = traceTemplateChildren; |
255 |
org.apache.xalan.transformer.TransformerImpl impl = |
256 |
(org.apache.xalan.transformer.TransformerImpl) transformer; |
257 |
org.apache.xalan.trace.TraceManager tm = impl.getTraceManager(); |
258 |
tm.addTraceListener(tracer); |
259 |
} |
243 |
} |
260 |
} |
244 |
|
261 |
|
245 |
/** |
262 |
/** |
Lines 394-399
Link Here
|
394 |
return JAXPUtils.getSystemId(file); |
411 |
return JAXPUtils.getSystemId(file); |
395 |
} |
412 |
} |
396 |
|
413 |
|
|
|
414 |
private boolean traceTemplates; |
415 |
private boolean traceGeneration; |
416 |
private boolean traceSelections; |
417 |
private boolean traceTemplateChildren; |
397 |
|
418 |
|
398 |
/** |
419 |
/** |
399 |
* Specific configuration for the TRaX liaison. |
420 |
* Specific configuration for the TRaX liaison. |
Lines 429-433
Link Here
|
429 |
= (XSLTProcess.OutputProperty) props.nextElement(); |
450 |
= (XSLTProcess.OutputProperty) props.nextElement(); |
430 |
setOutputProperty(prop.getName(), prop.getValue()); |
451 |
setOutputProperty(prop.getName(), prop.getValue()); |
431 |
} |
452 |
} |
|
|
453 |
traceTemplates = xsltTask.getTraceTemplates(); |
454 |
traceGeneration = xsltTask.getTraceGeneration(); |
455 |
traceSelections = xsltTask.getTraceSelections(); |
456 |
traceTemplateChildren = xsltTask.getTraceTemplateChildren(); |
432 |
} |
457 |
} |
433 |
} |
458 |
} |