(check "explicit-anyuri-cxtm-locator-rule" (search "<value>#z</value>" (cxtm map))))
(dolist (name '("integer" "decimal" "date" "dateTime"))
(let* ((dt (concatenate 'string "http://www.w3.org/2001/XMLSchema#" name))
(check "explicit-anyuri-cxtm-locator-rule" (search "<value>#z</value>" (cxtm map))))
(dolist (name '("integer" "decimal" "date" "dateTime"))
(let* ((dt (concatenate 'string "http://www.w3.org/2001/XMLSchema#" name))
(state (map-state map)) (c (cxtm-condition (lambda () (cxtm map)))))
(check (concatenate 'string "excluded-normalization-model-preserves:" name)
(state (map-state map)) (c (cxtm-condition (lambda () (cxtm map)))))
(check (concatenate 'string "excluded-normalization-model-preserves:" name)
- (and (string= dt (topic-maps.tmdm:occurrence-datatype o)) (string= "00042" (topic-maps.tmdm:occurrence-value o))))
- (if (member name '("integer" "decimal") :test #'string=)
+ (and (string= dt (topic-maps.tmdm:occurrence-datatype o)) (string= value (topic-maps.tmdm:occurrence-value o))))
+ (if (member name '("integer" "decimal" "date") :test #'string=)
(cxtm map)) (equal state (map-state map))))
(check (concatenate 'string "excluded-normalization-explicit-cxtm-unsupported:" name)
(and (typep c 'topic-maps.cxtm:cxtm-unsupported) (eq :unsupported-occurrence-datatype (topic-maps.cxtm:error-code c)) (equal state (map-state map)))))))
(cxtm map)) (equal state (map-state map))))
(check (concatenate 'string "excluded-normalization-explicit-cxtm-unsupported:" name)
(and (typep c 'topic-maps.cxtm:cxtm-unsupported) (eq :unsupported-occurrence-datatype (topic-maps.cxtm:error-code c)) (equal state (map-state map)))))))