XSD choice inside all

前端 未结 1 998
生来不讨喜
生来不讨喜 2021-01-18 02:01

You can\'t put choice tag inside the all tag. So, is there any workaround to get this functionallity? For example, I have tag like:



        
1条回答
  •  不思量自难忘°
    2021-01-18 02:57

    Check this link: http://www.w3.org/wiki/Needs_choice_inside_all

    I summarize for you the solutions proposed:

    One solution is to wrap the element that can change inside another:

      
       
       
       
      
    
     
      
       
        
        
       
      
     
    

    The other one is to use a substitution group:

      
       
       
       
      
     
     
      ... 
      ... 
    

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