Details
-
Bug
-
Status: Reopened
-
Major
-
Resolution: Unresolved
-
2.7.1
-
None
-
Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
-
None
-
Linux with sun jdk 1.4.2_04-b05, xalan 2.6.0 builded from source
Description
I have this difference between xalan and xsltc compilation.
I add in samples/trax/xsl/inc1/inc1.xsl the same param declared in samples/trax/xsl/foo.xsl, so now my inc1.xsl is:
<xsl:stylesheet
xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
<xsl:include href="inc2/inc2.xsl"/>
<xsl:param name="a-param">default param value</xsl:param>
</xsl:stylesheet>
I simply do a transformation with xalan and all work fine, but if I try to compile a translet I got this message:
Compiler errors:
file:/home/daniele/Software/Java/lib/xalan/xalan-j_2_6_0/samples/trax/xsl/inc1/inc1.xsl: line 6: Variable 'a-param' is multiply defined in the same scope.
Is this correct? I missing somethings or this is a bug?
TIA