This is the first time I am using XSLT transform to transform an XML file.However, I am using a large XSLT(~2000 lines) written by someone else for the purpose of transformation.When I try to use XslCompiledTransform I get an error:The variable or parameter 'resourcetitle' is either not defined or it is out of scope. I resolved this error using <xsl:variable name=""/> tag.However,I am not sure if this is the right way to resolve the error.
Also,now I am getting another error:The variable or parameter 'dataTableCount' was duplicated within the same scope. Does this mean that there is a problem with the XSLT file? I am not sure how to resolve this error. I am using ASP.NET,C#(VS 2010) environment for the XSLT whereas the person who wrote it is used Perl-CGI script. Can that be a reason why the same XSLT doesn't work in .NET environment? Any suggestions will be grately appreciated.