-(defun absolute-locator-p (value)
- ;; Model inputs are already validated/resolved locators, not CTM source.
- (and (stringp value)
- (let ((colon (position #\: value)))
- (and colon (plusp colon)
- (let ((head (subseq value 0 colon)))
- (and (or (char<= #\a (char head 0) #\z) (char<= #\A (char head 0) #\Z))
- (every (lambda (c) (or (char<= #\a c #\z) (char<= #\A c #\Z)
- (char<= #\0 c #\9) (find c "+-."))) head)))))))
+(define-condition occurrence-identifier-error (occurrence-error item-identifier-error) ())
+(defun legacy-identifier-problem (condition)
+ ;; Existing callers may still catch OCCURRENCE-ERROR; the uniform API also
+ ;; exposes ITEM-IDENTIFIER-ERROR without breaking that condition contract.
+ (error 'occurrence-identifier-error :code (item-identifier-error-code condition)
+ :detail (item-identifier-error-detail condition)))