]> dreyeck.freedombox.rocks Git - topic-maps.git/blobdiff - tests/xtm-names.lisp
Support XTM topic name reification (Slice 21M)
[topic-maps.git] / tests / xtm-names.lisp
index 2c20ee13158e2853085b465fced69bd4f7a0b105..b694b177164ff7c9f325eae4f2c52863926c2388 100644 (file)
                   ("ii-after-value" "<name><value>N</value><itemIdentity href='#name'/></name>" :element-order)
                   ("variant-before-value" "<name><variant><scope><topicRef href='#s'/></scope><resourceData>V</resourceData></variant><value>N</value></name>" :element-order)))
     (name-error-control (first spec) (format nil "<topic id='a'>~A</topic>" (second spec)) 'xtm-rejection (third spec)))
-  (dolist (spec '(("scope" "<name><scope><topicRef href='#s'/></scope><value>N</value></name>" :unsupported-construct)
-                  ("variant" "<name><value>N</value><variant><scope><topicRef href='#s'/></scope><resourceData>V</resourceData></variant></name>" :unsupported-construct)
-                  ("itemIdentity" "<name><itemIdentity href='#n'/><value>N</value></name>" :unsupported-construct)
-                  ("reifier" "<name reifier='#r'><value>N</value></name>" :reification)))
+  (dolist (spec '(("variant-resourceData-datatype" "<name><value>N</value><variant><scope><topicRef href='#s'/></scope><resourceData datatype='http://www.w3.org/2001/XMLSchema#integer'>42</resourceData></variant></name>" :resource-data-datatype)
+                  ("variant-reifier" "<name><value>N</value><variant reifier='#r'><scope><topicRef href='#v'/></scope><resourceData>V</resourceData></variant></name>" :reification)))
     (name-error-control (concatenate 'string "unsupported-" (first spec))
       (format nil "<topic id='a'>~A</topic>" (second spec)) 'xtm-unsupported (third spec)))
   (let* ((body (format nil "~%<topic id='a'>~% <name/>~%</topic>"))