I tired running samples with duplicated variables. They are running perfectly. But when I moved them to web application environment the same samples giving me Duplicate global decleration exception. Can somebody please help me on this?

 

Regards,

Srinivas

 


From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net] On Behalf Of Srinivas Rao Ch
Sent: Friday, October 15, 2004 9:43 AM
To: saxon-help@lists.sourceforge.net
Subject: [saxon] Xalan to Saxon

 

I am trying change my XSL processor to saxon from xalan. I am facing some problems while doing.

1. I am running my Tomcat from Eclipse environment, and saxon is expecting the xsl pages at eclipse home rather inside the webapp home.

2. Then, I copied the files to eclipse home. I am getting the following exception
javax.xml.transform.TransformerConfigurationException: net.sf.saxon.xpath.StaticError: Duplicate global variable declaration (see line 70 of file:/E:/eclipse/local/hig/searchresults_common.xsl)

I cleared the duplicate variables, and still getting the same problem even if there no duplicate variables.

I added saxon jars to my WEB-INF\lib. Do I need to do anything. And, I passed -Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl to java.

Am I missing anything else?

Any help is greatly appreciated.

Regards,
Seenu