Schema Central  >  USLM 2.1.0  >  uslm-components-2.1.0.xsd  >  role
Advanced search

role

               Use the @role attribute to provide further refinement to an
               element's type. This is particularly useful when defining a
               refinement of an element from the abstract set. Another possible 
               use is to use the customary local name for an element whenever
               the element name is not a complete match. For example, if the 
               customary name for an "explanation" is "summary", then the 
               element can be expressed as <explanation role="summary">.
               
               There is a rough equivalence between an element of a base class
               with a @role attribute and a derived class in the schema, although
               this equivalence is not explicit. For example 
               <level role="division"> is roughly equal to <division>.
               
               When transforming XML to HTML, the @role attribute should be 
               appended to the element name using an "_" underscore and used
               as the first value in the HTML @class attribute. If desired,
               the proposed XHTML @role attribute can be computed as either the
               XML @role attribute or, in the absence of the XML @role 
               attribute, the XML element name. For example:
               
               <level role="division">
                  => <div role="division" class="level_division"> 
               
               <division> 
                  => <div role="division" class="division">
                  
               This approach is easily reversible.   
               
               In a similar way to the @class attribute, multiple role values  
               can be specified in a space separated list. 
             

Attribute information

Namespace: None

Schema document: uslm-components-2.1.0.xsd

Type: uslm:ShortStringSimpleType

Properties: Local, Unqualified

Value

Used in