<datatype>  indica il valore dichiarato di un attributo facendo riferimento a un qualsiasi tipo di dati definito nel linguaggio scelto
                     per lo schema 1.4.2  Datatype Macros22.4.5  Attribute List Specification 
               
                  Modulo tagdocs — 22  Documentation Elements
                   
                
               
                  Oltre agli attributi globali 
                     
                        
                        
                           minOccurs 
                            (numero minimo di occorrenze) indica il numero minimo di volte che questo tipo di dati può verificarsi nella definizione dell'attributo da definire
                              
                                 
                                    Stato  
                                    Opzionale  
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                    Tipo di dati  
                                    
                                       
                                     
                                  
                                 
                                 
                              
                            
                         
                        
                        
                           maxOccurs 
                            (numero minimo di occorrenze) indica il numero massimo di volte che questo tipo di dati può verificarsi nella definizione dell'attributo da definire
                              
                                 
                                    Stato  
                                    Opzionale  
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                    Tipo di dati  
                                    
                                       Compatta in formato XML Formato XML da compattare <rng:choice> <rng:ref name="data.count  <rng:value> unbounded</rng:value> </rng:choice> 
data.count  | "unbounded"  
                                  
                                 
                                 
                              
                            
                         
                        
                     
                   
                
               
                  Usato da 
                     
                   
                
               
                  Può contenere Elemento vuoto  
               
               
               
               
               
               
               
               
               
               
               
                  Dichiarazione 
                     Compatta in formato XML Formato XML da compattare <rng:element name="datatype "> <rng:ref name="att.global.attributes  <rng:optional> <rng:attribute name="minOccurs " a:defaultValue="1 "> <rng:ref name="data.count  </rng:attribute> </rng:optional> <rng:optional> <rng:attribute name="maxOccurs " a:defaultValue="1 "> <rng:choice> <rng:ref name="data.count  <rng:value> unbounded</rng:value> </rng:choice> </rng:attribute> </rng:optional> <rng:zeroOrMore> <rng:group> <rng:ref name="macro.schemaPattern  </rng:group> </rng:zeroOrMore> </rng:element> 
element  datatype 
{
   att.global.attributes ,
   attribute minOccurs { data.count  }?,
   attribute maxOccurs { data.count  | "unbounded" }?,
   macro.schemaPattern *
}  
                
               
               
               
                  Esempio 
                     
                     <datatype>  <rng:data type="token "/> </datatype> 
                        
                      
                
               
               
               
                  Esempio 
                     
                     <datatype>  <rng:ref name="data.enumerated "/> </datatype> 
                        
                      
                
               
               
                  Esempio 
                     
                     
                            The encoding in the following example requires that the
                        attribute being defined contain at least two URIs in its value, as
                        is the case for the targets  attribute of
                        join .
                     
                     
                     <datatype minOccurs="2 " maxOccurs="unbounded ">  <rng:ref name="data.pointer "/> </datatype>