A REFERENT written to this STREAM cannot be defined in an outer NESTED-REFERENTS scope.
#6038 Run-time catchable error
A REFERENT written to this STREAM cannot be defined in an outer NESTED-REFERENTS scope.
Additional Information
For stream X
Explanation
When writing a stream that contains unresolved referents to another
stream open with REFERENTS-ALLOWED
, attention must be paid to the
depths of the referent scopes where the source and the target streams
are open. The depth of the referent scope where the source stream has
been open must be greater or equal to the depth of the referent scope
where the target stream has been open. This condition is imposed by
the OmniMark language to ensure that no referents defined in an
outer referent scope end up being resolved in an inner referent scope.