Hi, dear all
I use Saxon 6.5.5 in our projects to convert some xml files.
I got an error like this:
Error at xsl:variable on line -1 of :
Variable is already declared in this template
Exception in thread "main" javax.xml.transform.TransformerConfigurationException: Failed
to compile stylesheet. 1 error detected.
I know it is because a same variable is defined twice.
But why the error line number is -1 ? I dont't know where is the error variable and
have to look for it manually.
Does I config wrong ? How to let it display the correct line number ?
From: Michael Kay <mike@sa...> - 2006-11-15 09:27:37
It probably just means that Saxon has failed to add the location information
to the exception for this particular error case. The simplest way to get
better diagnostics would be to run the code through Saxon 8.x. In fact, I
would be inclined to use Saxon 8.x these days even if you're still using
XSLT 1.0, as the product benefits from about 5 years of extra development.
I'm still prepared to fix any serious bugs found in Saxon 6.5.5 but serious
bugs are now so rare that it seems increasingly unlikely that there will
ever be another release. I'm afraid that cosmetic issues like this don't
fall into this category.
> -----Original Message-----
> From: saxon-help-bounces@...
> [mailto:saxon-help-bounces@...] On Behalf
> Of Dongdong Xu
> Sent: 15 November 2006 08:25
> To: saxon-help@...
> Subject: [saxon] error line number is always -1
> Hi, dear all
> I use Saxon 6.5.5 in our projects to convert some xml files.
> I got an error like this:
> Error at xsl:variable on line -1 of :
> Variable is already declared in this template Exception in
> thread "main"
> javax.xml.transform.TransformerConfigurationException: Failed
> to compile stylesheet. 1 error detected.
> I know it is because a same variable is defined twice.
> But why the error line number is -1 ? I dont't know where is
> the error variable and have to look for it manually.
> Does I config wrong ? How to let it display the correct line number ?
> Take Surveys. Earn Cash. Influence the Future of IT Join
> SourceForge.net's Techsay panel and you'll get the chance to
> share your opinions on IT & business topics through brief
> surveys - and earn cash
> saxon-help mailing list