How to iterate over IDREFS values in XSLT 1.0?

后端 未结 1 1661
迷失自我
迷失自我 2020-12-07 04:12

I have an xml that uses an IDREFS field. I need to extract those id to put their in their own element.

Here\'s the basic structure I think I need but I don\'t know w

1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-07 04:41

    You need to tokenize the value of the idrefsField attribute. XSLT 1.0 has no native tokenize() function, so you need to call a recursive named template to do this for you:

    
        
            
                
            
        
    
    
    
        
        
        
            
                
            
            
                
                
                    
                
            
    
    

    Alternatively, if your processor supports it, you could use the EXSLT str:tokenize() extension function.

    0 讨论(0)
提交回复
热议问题