Dave, thank you for your response. I looked in the Docs and the sample programs but I am not sure what classes to use in order to get the XML element (respecitvely the line number) where the stylesheet reported an error on. Do I have to use a XercesParserLiaison or kind of a wrapper class?
To create a Jira request do I have to send a mail to the xalan-developper list? Bettina > > 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 > -- DSL Komplett von GMX +++ Superg�nstig und stressfrei einsteigen! AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl
