content_image/666496.jpg
<x><context>b</context><s>-</s></x> 

•Previous context syntax can include the <extend>  element. These rules put ’def’  greater at the primary level than ’aghi’ , but only when ’def’  comes after ’abc’ : 

<reset>a</reset> <x><context>abc</context><p>def</p><extend>ghi</extend></x> 

•Reset rules permit a before  attribute. Normally, shift rules after a reset rule indicate characters that sort after the reset character. Shift rules after a reset rule that has the before  attribute indicate characters that sort before the reset character. The following rules put the character ’b’  immediately before ’a’  at the primary level: 

<reset before="primary">a</reset> <p>b</p> 

Permissible before  attribute values specify the sort level by name or the equivalent numeric value: 

<reset before="primary"> <reset before="1"> <reset before="secondary"> <reset before="2"> <reset before="tertiary"> <reset before="3"> 

•A reset rule can name a logical reset position rather than a literal character: 

<first_tertiary_ignorable/> <last_tertiary_ignorable/> <first_secondary_ignorable/> <last_secondary_ignorable/> <first_primary_ignorable/> <last_primary_ignorable/> <first_variable/> <last_variable/> <first_non_ignorable/> <last_non_ignorable/> <first_trailing/> <last_trailing/> 

These rules put ’z’  greater at the primary level than nonignorable characters that have a Default Unicode Collation Element Table (DUCET) entry and that are not CJK: 

<reset><last_non_ignorable/></reset> <p>z</p> 

Logical positions have the code points shown in the following table. 

<img src='content_image/666496.jpg'>

