+ (when (member (token-kind value) '(:identifier :iri :qname))
+ ;; Recognize the typed-name syntax, without resolving its type
+ ;; or creating information items for unsupported name semantics.
+ (unless (punctuation-p parser #\:)
+ (problem 'ctm-rejection :expected-name-type-separator
+ (token-position (look parser)) "Expected ':' after the name type."))
+ (consume parser)
+ (let ((literal (consume parser)))
+ (unless (eq :string (token-kind literal))
+ (problem 'ctm-rejection :expected-name-value (token-position literal)
+ "Expected a quoted name value after the name type separator.")))
+ (problem 'ctm-unsupported :typed-name (token-position value)
+ "Typed names are outside Slice 1 (CTM 3.11)."))