]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/xtm-name-scopes.lisp
Integrate qualified XML anyType values into the XTM reader
[topic-maps.git] / tests / xtm-name-scopes.lisp
index 92883b8c3fc09a5db9226a510dcd83afb116763c..b8300b9c891af8ee2c77cd9e33d0412f9b56e43f 100644 (file)
     ("ref-namespace" "<scope><topicRef xmlns='urn:foreign' href='#s'/></scope>" :invalid-namespace)))
     (scope-error-control (first spec) (format nil "<topic id='a'><name>~A<value>N</value></name></topic>" (second spec)) 'xtm-rejection (third spec)))
   (scope-error-control "after-value" "<topic id='a'><name><value>N</value><scope><topicRef href='#s'/></scope></name></topic>" 'xtm-rejection :element-order)
-  (dolist (spec '(("variant-resourceData-datatype-stays-unsupported" "<name><scope><topicRef href='#s'/></scope><value>N</value><variant><scope><topicRef href='#v'/></scope><resourceData datatype='http://www.w3.org/2001/XMLSchema#integer'>42</resourceData></variant></name>" :resource-data-datatype)
-    ("variant-reifier-excluded-datatype" "<name><scope><topicRef href='#s'/></scope><value>N</value><variant reifier='#r'><scope><topicRef href='#v'/></scope><resourceData datatype='http://www.w3.org/2001/XMLSchema#integer'>42</resourceData></variant></name>" :resource-data-datatype)))
+  (dolist (spec '(("variant-resourceData-datatype-stays-unsupported" "<name><scope><topicRef href='#s'/></scope><value>N</value><variant><scope><topicRef href='#v'/></scope><resourceData datatype='http://www.w3.org/2001/XMLSchema#anyType'>42</resourceData></variant></name>" :resource-resolver-required)
+    ("variant-reifier-excluded-datatype" "<name><scope><topicRef href='#s'/></scope><value>N</value><variant reifier='#r'><scope><topicRef href='#v'/></scope><resourceData datatype='http://www.w3.org/2001/XMLSchema#anyType'>42</resourceData></variant></name>" :resource-resolver-required)))
     (scope-error-control (first spec) (format nil "<topic id='a'>~A</topic>" (second spec)) 'xtm-unsupported (third spec)))
-  (scope-error-control "occurrence-stays-unsupported" "<topic id='a'><occurrence><type><topicRef href='#t'/></type><scope><topicRef href='#s'/></scope><resourceData>V</resourceData></occurrence></topic>" 'xtm-unsupported :unsupported-construct)
-  (scope-error-control "association-stays-unsupported" "<association><type><topicRef href='#t'/></type><scope><topicRef href='#s'/></scope><role><type><topicRef href='#r'/></type><topicRef href='#a'/></role></association>" 'xtm-unsupported :unsupported-construct))
+  (scope-error-control "occurrence-stays-unsupported" "<topic id='a'><occurrence reifier='#r'><type><topicRef href='#t'/></type><scope><topicRef href='#s'/></scope><resourceData datatype='http://www.w3.org/2001/XMLSchema#anyType'>V</resourceData></occurrence></topic>" 'xtm-unsupported :resource-resolver-required)
+  (scope-error-control "association-stays-unsupported" "<association reifier='#excluded'><type><topicRef href='#t'/></type><scope><topicRef href='#s'/></scope><role reifier='#excluded-role%GG'><type><topicRef href='#r'/></type><topicRef href='#a'/></role></association>" 'xtm-rejection :invalid-percent-escape))
 
 (defun scope-tests ()
   (setf *scope-controls* nil)