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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15530

problem with unioned elements in Muenchian Grouping

           Summary: problem with unioned elements in Muenchian Grouping
           Product: XalanJ2
           Version: 2.4
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The starting is the same as Bug #15527, but with XSLTC something else on another
place in the code went wrong. The key declaration has nothing to do with this
problem, only the applying of the template:

Does not work:

<xsl:apply-templates select="
    (//jpath:if       | //jpath:when    )[generate-id(.) =
generate-id(key('JPathExprs', @test))]
  | (//jpath:for-each | //jpath:value-of)[generate-id(.) =
generate-id(key('JPathExprs', @select))]"/>

Works:

<xsl:apply-templates select="
  //jpath:if      [generate-id(.) = generate-id(key('JPathExprs', @test))]
| //jpath:when    [generate-id(.) = generate-id(key('JPathExprs', @test))]
| //jpath:value-of[generate-id(.) = generate-id(key('JPathExprs', @select))]
| //jpath:for-each[generate-id(.) = generate-id(key('JPathExprs', @select))]"/>

The template is not applied to all elements it should be. Some got forgotten.

Reply via email to