How to access parent element in XSD assertion XPath?

后端 未结 1 1991
栀梦
栀梦 2020-12-11 23:31

I am trying to write an assertion that will make the values of @row and @column less than or equal to the values of @rows and @c

1条回答
  •  执笔经年
    2020-12-12 00:22

    An assertion XPath cannot reach outside of its context.

    So, move your assertion up to the structure element, and use an every ... satisfies assertion test:

    
    
        
            
                
                    
                        
                               
                            
                        
                    
                
                
                
                
                
            
        
    
    

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