Message:

   The following issue has been resolved as INVALID.

   Resolver: Henry Zongaro
       Date: Tue, 12 Oct 2004 7:36 AM

I believe the error message that XSLTC produces is correct.  According to section 11.4 
of XSLT 1.0 [1], "It is an error if a stylesheet contains more than one binding of a 
top-level variable with the same name and same import precedence."  In your example, 
foo.xsl and inc1.xsl have the same import precedence, so the duplicate declaration of 
a-param is in error.

[1] http://www.w3.org/TR/xslt#top-level-variables
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XALANJ-1976

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XALANJ-1976
    Summary: Different behaviour between xalan and xsltc
       Type: Bug

     Status: Resolved
   Priority: Major
 Resolution: INVALID

    Project: XalanJ2
 Components: 
             XSLTC parse/compile
   Versions:
             2.6

   Assignee: 
   Reporter: Daniele Madama

    Created: Mon, 11 Oct 2004 3:07 AM
    Updated: Tue, 12 Oct 2004 7:36 AM
Environment: 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



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to