xsd select multiple values from enumeration or equivalent type

前端 未结 3 1443
感动是毒
感动是毒 2021-01-22 03:27

I have the following XSD sample


    
        
             


        
3条回答
  •  北海茫月
    2021-01-22 03:50

    If you can loose the comma (not supported as a separator in XSD), and be content with whitespaces, then this is your solution:

    
    
    
        
            
                
                    
                        
                            
                            
                            
                            
                            
                            
                            
                                          
                                   
                
            
        
    
    

    You're basically using a list, therefore something like this would be perfectly valid:

    
    
    Monday Tuesday Wednesday 
    

    To be proactive here... if, for example, one might want to ensure uniqueness of the values, then this cannot be enforced in XSD.

提交回复
热议问题