How do I access elements from the outer loop from within nested loops?

前端 未结 3 830
隐瞒了意图╮
隐瞒了意图╮ 2020-12-09 09:28

I have nested xsl:for loops:


    
        
             


        
3条回答
  •  盖世英雄少女心
    2020-12-09 10:08

    Welbog has answered it well - but just to note you appear to be doing a cartesion (cross) join - is that intentional? If you are trying to do a regular join (with a predicate etc), then you want want to look into - i.e. declare a key:

    
    

    then consume in your predicate:

    
        
        
         
        
    
    

    This should be equivalent to (but much faster than) the predicate:

        
    

    If you are grouping the data, then look at Muenchian grouping

提交回复
热议问题