I have the following code:

File template = new file("fully qualified file path");
Document templateDoc = parser.parse(template);
source =

new DOMSource( templateDoc );
tranFactory = new net.sf.saxon.TransformerFactoryImpl();
aTransformer = tranFactory.newTransformer( source );

which produces the following output in System.err:

 <trace saxon-version="" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <source node="/" line="0" file="">
  <source node="/parameters/@lastUpdateDt" line="-1" file="">
  </source><!-- /parameters/@lastUpdateDt -->
  <source node="/parameters" line="-1" file="">
  </source><!-- /parameters -->
  <source node="/parameters" line="-1" file="">
  </source><!-- /parameters -->
  <source node="/parameters" line="-1" file="">
  </source><!-- /parameters -->
  <source node="/parameters/doc[1]" line="-1" file="">
   <source node="/parameters/doc[1]/text()[1]" line="-1" file="">
   </source><!-- /parameters/doc[1]/text()[1] -->
  </source><!-- /parameters/doc[1] -->

 Question: what is missing in the configuration which will allow the trace to contain line number and file information?  There are imports embedded within where the URIResolver has calculated it's location.  The error listener will report the correct file and line numbers when syntax errors occur in the nested stylesheets so I don't think the URIResolver is is the problem yet I don't know what else to look at.

Todd Gochenour