XML to HTML table with XSLT

后端 未结 4 1510
梦如初夏
梦如初夏 2020-12-17 02:56

I need to be able to turn a flat xml data sets into html tables, and I\'m having trouble finding syntax examples that will fit my need. I would like to use one stylesheet th

4条回答
  •  感情败类
    2020-12-17 03:23

    This stylesheet:

    
        
            
            

    Applied to:

    
        
            BlPUAA0
            Initech
            Client
        
        
            CJxIAAW
            Intertrode
            Prospect
        
    
    

    Produces:

    AccountId AccountName AcocuntStatus
    BlPUAA0 Initech Client
    CJxIAAW Intertrode Prospect

    And applied to:

    
      
        BlPUAA0
        Initech
      
      
        CJxIAAW
        Intertrode
      
    
    

    Produces:

    AccountId AccountName
    BlPUAA0 Initech
    CJxIAAW Intertrode

    Alternatively, this stylesheet produces the same output using a conditional and one fewer template:

    
        
            
            

提交回复
热议问题