@val

The attribute val specifies a particular word token by means of its string value. Treated as a constrained regular expression (the expression must match the entire token).

For more see the section called “@pos and @val”

Formal Definition

string (pattern .+)

Defined at: TAN-class-2.rng

Used by: ~abstract-tok-ref, ~tok-single-selector-attributes, ~tok-mult-selector-attributes

[Caution]Caution

Attributes that take a regular expression must use escape sequences recognized by XML schema or TAN escape extensions (\u{}). See http://www.w3.org/TR/xmlschema-2/#regexs

[Caution]Caution

Every token must be locatable in every cited ref in every source.

[Caution]Caution

<tok> must reference a leaf <div>.

Example 8.73. @val

   <head>
      .........
      <alter src="fra">
         .........
         <reassign>
            <tok ref="5 5">
               <from val="Ceci"/>
               <to pos="4" val="corps"/>
            </tok>
            .........
         </reassign>
         <reassign>
            <tok ref="5 5">
               <from val="Il"/>
               <to val="exister"/>
            </tok>
            .........
         </reassign>
         .........
         <reassign>
            <tok ref="6 23">
               <from val="Il"/>
               <to val="même" pos="last-1"/>
            </tok>
            .........
         </reassign>
         .........
         <reassign>
            <tok ref="7 17">
               <from val="Il"/>
               <to pos="last"/>
            </tok>
            .........
         </reassign>
         .........
         <reassign>
            <tok ref="7 26">
               <from val="Ceci"/>
               <to pos="last"/>
            </tok>
            .........
         </reassign>
         .........
         <reassign>
            <tok ref="8 11">
               <from val="Il"/>
               <to pos="last"/>
            </tok>
            .........
         </reassign>
         .........
         <reassign>
            <tok ref="11 2">
               <from val="Ceci"/>
               <to pos="last"/>
            </tok>
            .........
         </reassign>
         .........
         <reassign>
            <tok ref="14 4">
               <from val="Il"/>
               <to val="autres" pos="2"/>
            </tok>
            .........
         </reassign>
         .........
      </alter>
      .........
   </head>


[Note]Note

Taken from ar.cat.tan-a-div