att.global.analytic

att.global.analytic provides additional global attributes for associating specific analyses or interpretations with appropriate portions of a text. [17.2. Global Attributes for Simple Analyses 17.3. Spans and Interpretations]
Module analysis
Members item l p
Attributes Attributes
ana (analysis) indicates one or more elements containing interpretations of the element on which the ana attribute appears.
Status Optional
Datatype 1–∞ occurrences of limdata.ana separated by whitespace
Note
When multiple values are given, they may reflect either multiple divergent interpretations of an ambiguous text, or multiple mutually consistent interpretations of the same passage in different contexts.
Schematron
ana values should all be distinct

<sch:rule context="*[@ana]">
   
<sch:let name="values" value="tokenize(@ana,'\s+')"/>
   
<sch:let name="dups" value="for $v in $values return if (count(index-of($values, $v)) gt 1) then $v else ()"/>
   
<sch:assert test="empty($dups)">ERROR: Do not repeat @ana values (duplicate values found:<sch:value-of select="string-join(distinct-values($dups),', ')"/>)</sch:assert>
</sch:rule>
Source Github

<classSpec rend="change" predeclare="true" module="analysis" xml:id="CLANA" type="atts" ident="att.global.analytic">
   
<desc>provides additional global attributes for associating specific analyses or
interpretations with appropriate portions of a text.
</desc>
   
<classes/>
   
<attList>
      
<attDef ident="ana" usage="opt">
         
<gloss>analysis</gloss>
         
<desc>indicates one or more elements containing interpretations of the
element on which the 
<att>ana</att> attribute appears.</desc>
         
<datatype minOccurs="1" maxOccurs="unbounded">
            
<dataRef key="limdata.ana"/>
         
</datatype>
      
</attDef>
   
</attList>
</classSpec>