- (dolist (text '("%include <other.ctm>" "%version 1.0" "%prefix ex <urn:ex:> a - ex:type: \"Name\"."))
- (check (concatenate 'string "remaining-construct-unsupported:" text) (typep (ctm-condition text) 'ctm-unsupported))))
+ (dolist (text '("%include <other.ctm>" "%version 1.0"))
+ (check (if (search "%include" text) "prefix:Include-requires-explicit-resolver"
+ (concatenate 'string "remaining-construct-unsupported:" text))
+ (let ((c (ctm-condition text)))
+ (and (typep c 'ctm-unsupported)
+ (or (not (search "%include" text)) (eq :resource-resolver-required (error-code c)))))))
+ (let* ((map (read-text "%prefix ex <urn:ex:> a - ex:type: \"Name\"."))
+ (name (first (topic-names (first-topic map)))))
+ (check "prefix-qname-name-type-supported"
+ (equal '("urn:ex:type") (topic-subject-identifiers (topic-name-type name))))))
+