The cancel-location data type
The cancel-location type is used to indicate where a key signature cancellation appears relative to a new key signature: to the left, to the right, or before the barline and to the left. It is left by default. For mid-measure key elements, a cancel-location of before-barline should be treated like a cancel-location of left.
Allowed values
Base type: xs:string
| before-barline | ![]() | |
| left | ![]() | |
| right | ![]() |
Where is this type used?
<cancel> — “location” attribute


