> I am using a stylesheet to do additional validation on > an XML file. I created error messages in the xslt- > instruction <xsl:message>. To get the messages I implemented > the method "problem()" in a derived class from > XalanTransformerProblemListener. Everything works fine but > unfortunately the parameter 'lineNo' returns the line number > of the corresponding template in the stylesheet where I > defined the message. Is there a way to get the line number > of the XML file where the problem occured?
We don't have a feature to do this. It would require building a lookup table that maps source tree nodes to line and column numbers, and that would be quite expensive to build in many cases. You could create a Jira request for an enhancement, if you really need this feature. Dave
