DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27843>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27843

Current template rule affected by calling named template

           Summary: Current template rule affected by calling named template
           Product: XalanJ2
           Version: CurrentCVS
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Suppose stylesheet A imports stylesheet B, which imports stylesheet C.  If a 
template in stylesheet A is matched, and calls a named template in stylesheet 
B, and that named template executes an xsl:apply-imports, the "current template 
rule" [1], for the purposes of apply-imports, should still be the template in 
stylesheet A.  However, XSLTC is behaving as if the current 
template rule was in stylesheet B, and is only apply imported templates from 
stylesheet C.

See bug 27841, which is the same problem reported against Xalan-J Interpretive, 
for stylesheets, input and expected output.

[1] http://www.w3.org/TR/xslt#apply-imports

Reply via email to