# file : cxx/parser/validation/sequence/testscript # license : GNU GPL v2 + exceptions; see accompanying LICENSE file test.arguments += test.xml : valid : { cat <=test.xml; c d aaabbbccc f e a b c d d d any f e e a b c d d d any f e e c d any f e EOI $* >>EOO { c = c d = d any: test#any { chars = aaa any: #a { chars = bbb } chars = ccc } f = f e = e } { a = a b = b c = c d = d d = d d = d any: other#any { chars = any } f = f e = e e = e } { a = a b = b c = c d = d d = d d = d any: other#any { chars = any } f = f e = e e = e c = c d = d any: test#any { chars = any } f = f e = e } EOO } : invalid1 : { cat <=test.xml; EOI $* >>EOO { :8:14 error: expected element 'a' } EOO } : invalid2 : { cat <=test.xml; c d any f e c d any f e c d any f e EOI $* >>EOO { c = c d = d any: test#any { chars = any } f = f e = e c = c d = d any: test#any { chars = any } f = f e = e :20:8 error: unexpected element 'c' } EOO } : invalid3 : { cat <=test.xml; a a c d any f e EOI $* >>EOO { a = a :9:8 error: expected element 'b' instead of 'a' } EOO } : invalid4 : { cat <=test.xml; d any f e EOI $* >>EOO { :8:8 error: expected element 'a' instead of 'd' } EOO } : invalid5 : { cat <=test.xml; c d any f e EOI $* >>EOO { c = c d = d :10:13 error: expected element '##targetNamespace#*' instead of 'other1#any' } EOO } : invalid6 : { cat <=test.xml; c d any f e e e EOI $* >>EOO { c = c d = d any: test#any { chars = any } f = f e = e e = e :14:8 error: unexpected element 'e' } EOO }