]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/xtm-resource-datatypes.lisp
perf(tmdm): index topic normalization merge candidates
[topic-maps.git] / tests / xtm-resource-datatypes.lisp
index 16e6aaf83ed5ebea51f2834018ef66c473dbaa60..4229cf9c8c5b35c642d410ddb72893c567d7171b 100644 (file)
   (dolist (value '("text" "<x xmlns='urn:foreign'>XML</x>"))
     (variant-reifier-error-control (concatenate 'string "datatype:anyType:" value)
       (datatype-body (datatype-resource "http://www.w3.org/2001/XMLSchema#anyType" value))
   (dolist (value '("text" "<x xmlns='urn:foreign'>XML</x>"))
     (variant-reifier-error-control (concatenate 'string "datatype:anyType:" value)
       (datatype-body (datatype-resource "http://www.w3.org/2001/XMLSchema#anyType" value))
-      'xtm-unsupported :resource-data-datatype))
+      'xtm-unsupported :resource-resolver-required))
   (variant-reifier-error-control "datatype:unknown-XTM-structure" "<topic id='a'><unknown/></topic>" 'xtm-rejection :unexpected-element)
   (variant-reifier-error-control "datatype:occurrence-remains-unsupported"
   (variant-reifier-error-control "datatype:unknown-XTM-structure" "<topic id='a'><unknown/></topic>" 'xtm-rejection :unexpected-element)
   (variant-reifier-error-control "datatype:occurrence-remains-unsupported"
-    "<topic id='a'><occurrence reifier='#r'><type><topicRef href='#t'/></type><resourceData datatype='urn:custom'>V</resourceData></occurrence></topic>"
-    'xtm-unsupported :unsupported-construct)
+    "<topic id='a'><occurrence reifier='#r'><type><topicRef href='#t'/></type><resourceData datatype='http://www.w3.org/2001/XMLSchema#anyType'>V</resourceData></occurrence></topic>"
+    'xtm-unsupported :resource-resolver-required)
   (variant-reifier-error-control "datatype:native-reifier-conflict"
     (format nil "<topic id='a'>~A</topic>" (variant-name-xml nil (concatenate 'string
       (datatype-variant "urn:custom" "A" :reifier "#r") (datatype-variant "urn:custom" "B" :reifier "#r"))))
   (variant-reifier-error-control "datatype:native-reifier-conflict"
     (format nil "<topic id='a'>~A</topic>" (variant-name-xml nil (concatenate 'string
       (datatype-variant "urn:custom" "A" :reifier "#r") (datatype-variant "urn:custom" "B" :reifier "#r"))))