How to check if an attribute exists in a XML file using XSL

前端 未结 4 754
别那么骄傲
别那么骄傲 2020-12-30 21:26

At runtime I can have two formats of a XML file:

  1. 
         
                
                
    
            
4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-30 21:59

    
         //some processing here using graph[1]/@color values
    
    

    I'm going to make a guess here since your question is missing a lot of important information, such as the context in which thie appears. If your comment is correct, what you want to do is process graph[1]/xaxis and .../yaxis, not graph[1]/@color values.

提交回复
热议问题