Even in the latest Xalan version, this feature doesn't seem to work although it's mentioned in Xalan's docs. You could try another XSLT processor which might provide the required Locator data. Otherwise, proceed as Jörg indicated. At any rate, if the XML source provides Locator information, FOP will display it. XML parsers usually do. For XSLT processors, this trick is a bit harder.
On 27.09.2010 21:41:07 thandana wrote: > > Hi All, > Any help is greatly appreciated. I am using Apache Xalan 2.7.1, FOP .95 to > generate pdf docs. The only issue is when i have an error in xsl-fo > document, i am not seeing line numbers in the error message. What should be > done to get the exact line # in xsl-fo document that is causing the error? > > I am using code like this but no use. > > transformFactoryInstance.setAttribute(TransformerFactoryImpl.FEATURE_SOURCE_LOCATION, > Boolean.TRUE); > > Thanks > Rathana. > -- > View this message in context: > http://old.nabble.com/xsl-fo-errors-and-line-numbers-tp29822450p29822450.html > Sent from the FOP - Users mailing list archive at Nabble.com. Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org