Normally we don't record source-file location information; it's rarely 
needed, and it consumes a significant amount of storage. 

But there's a "tooling" feature which will allocate and fill that 
additional space. The idea is that you'd enable this when you really 
needed it -- when using Xalan within an IDE, for example -- but leave it 
turned off when efficiency matters more than precision.

To enable this feature, see "source_location attribute" in 
http://xml.apache.org/xalan-j/features.html -- or, if you're using 
Process.main(), add the -L switch to the command line.

If the information is available, I believe it can be retrieved in either 
the error handler or in the trace listener, and I believe can also be 
accessed with the NodeInfo extension function -- which I think is what 
you're looking for.

______________________________________
Joe Kesselman  / IBM Research

Reply via email to