How do I convert NCIC code value to DCCIS code value for vehicle make?

前端 未结 2 902
日久生厌
日久生厌 2021-01-26 12:09

The business analyst told business rule for this has changed. Now they want me to first check (count) to see if there are more than one NcicCode (in the VehicleMakeMapping looku

2条回答
  •  囚心锁ツ
    2021-01-26 12:17

    If there are more than one NcicCode in the VehicleMakeMapping lookup document, then just use the first NcicCode as the output.

    To simplify the question, let us have:

    XML

    
        
            not important
        
        
            not important
        
    
    

    VehicleMakeMapping.xml

    
        
            ABCA
            ABC
            abc
        
        
            ABCB
            ABC
            abc abc
        
        
            ABCC
            ABC
            abc abc abc
          
    
    

    XSLT 2.0

    
    
    
    
    
    
    
    
    
        
            
        
    
    
    
        
            
                                     
            
        
    
    
    
    

    Result

    
    
       
          ABCA
       
       
          
       
    
    

提交回复
热议问题