]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/xtm-resource-datatypes.lisp
Integrate qualified XML anyType values into the XTM reader
[topic-maps.git] / tests / xtm-resource-datatypes.lisp
index 36e85878fca4cd760194f9d901e53f3c22036b25..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"
     "<topic id='a'><occurrence reifier='#r'><type><topicRef href='#t'/></type><resourceData datatype='http://www.w3.org/2001/XMLSchema#anyType'>V</resourceData></occurrence></topic>"
   (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='http://www.w3.org/2001/XMLSchema#anyType'>V</resourceData></occurrence></topic>"
-    'xtm-unsupported :resource-data-datatype)
+    '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"))))