xslt to skip already “visited” nodes

后端 未结 3 1613
故里飘歌
故里飘歌 2021-01-05 05:16

not sure if this is possible without having to go through several passes, but I\'ll ask anyway (my XSL is a little rusty)

I have an XML document, which contains node

3条回答
  •  遥遥无期
    2021-01-05 05:54

    Just for fun, other approach (level by level) and ussing keys:

    
        
        
        
        
            
            
            
            
            
            
                
                
            
        
        
            
            
            };
    
        
        
            
        
    
    

    Output:

    struct STRUCT_C
    {
        FIELD_E e;
        FIELD_F f;
        FIELD_G g;
    };
    struct STRUCT_B
    {
        STRUCT_C c;
        FIELD_E e;
    };
    struct STRUCT_A
    {
        STRUCT_B b;
        STRUCT_C c;
        FIELD_D d;
    };
    

提交回复
热议问题