Re: [Xsltforms-support] Syntax errors in the XSLTForms examples
Brought to you by:
alain-couthures
From: COUTHURES A. <ala...@ag...> - 2009-11-28 13:49:30
|
Owen, > I built a hybrid XForms 1.1. / XHTML schema to validate XForms, then > ran it against your examples to test it. This is a very interesting project. Is it an open source project ? XSLTForms doesn't validate XForms and it can be difficult for developers to locate problems. > Attached are the messages that resulted. I believe these to be > accurate from the perspective of strict XHTML / XForms validation; > please let me know if you think otherwise. These examples have not been constructed in XHTML validation perspective but your report will be useful to help for this: > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/balance.xml:7:66: cvc-complex-type.3.2.2: > Attribute 'xsd:dummy' is not allowed to appear in element 'html'. 1. This is a workaround for FireFox XSLT engine not supporting namespace axis. It should be useless, in almost cases, with the next release. > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/balance.xml:52:116: cvc-complex-type.3.2.2: > Attribute 'show' is not allowed to appear in element 'xforms:submission'. 2. This is an extension which could be integrated in XForms 1.2. It should be attached to a different namespace for validation. > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/select-model.xml:39:57: cvc-complex-type.2.4.a: > Invalid content was found starting with element 'xf:itemset'. One of > '{"http://www.w3.org/2002/xforms":label}' is expected. > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/select1.xml:20:22: cvc-complex-type.2.4.a: > Invalid content was found starting with element 'xf:item'. One of > '{"http://www.w3.org/2002/xforms":label}' is expected. > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/spreadsheet.xml:56:55: cvc-complex-type.2.4.a: > Invalid content was found starting with element 'xf:input'. One of > '{"http://www.w3.org/2002/xforms":label}' is expected. > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/calculator.xml:241:41: cvc-complex-type.2.4.a: > Invalid content was found starting with element 'xf:trigger'. One of > '{"http://www.w3.org/2002/xforms":label}' is expected. 3. But there is one xf:label element ??? > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/incremental.xml:20:40: cvc-complex-type.3.2.2: > Attribute 'nodeset' is not allowed to appear in element 'xf:group'. 4. Yes, that's right. It wasn't detected before because it's useless anyway. > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/incremental.xml:23:23: cvc-complex-type.2.4.a: > Invalid content was found starting with element 'xf:label'. One of > '{"http://www.w3.org/1999/xhtml":p, "http://www.w3.org/1999/xhtml":br, > "http://www.w3.org/1999/xhtml":h1, "http://www.w3.org/1999/xhtml":h2, > "http://www.w3.org/1999/xhtml":h3, "http://www.w3.org/1999/xhtml":h4, > "http://www.w3.org/1999/xhtml":h5, "http://www.w3.org/1999/xhtml":h6, > "http://www.w3.org/1999/xhtml":div, "http://www.w3.org/1999/xhtml":ul, > "http://www.w3.org/1999/xhtml":ol, "http://www.w3.org/1999/xhtml":dl, > "http://www.w3.org/1999/xhtml":pre, "http://www.w3.org/1999/xhtml":hr, > "http://www.w3.org/1999/xhtml":blockquote, > "http://www.w3.org/1999/xhtml":address, > "http://www.w3.org/1999/xhtml":fieldset, > "http://www.w3.org/1999/xhtml":table, > "http://www.w3.org/2002/xforms":group, > "http://www.w3.org/2002/xforms":repeat, > "http://www.w3.org/2002/xforms":switch, > "http://www.w3.org/2002/xforms":input, > "http://www.w3.org/2002/xforms":output, > "http://www.w3.org/2002/xforms":range, > "http://www.w3.org/2002/xforms":secret, > "http://www.w3.org/2002/xforms":select1, > "http://www.w3.org/2002/xforms":select, > "http://www.w3.org/2002/xforms":submit, > "http://www.w3.org/2002/xforms":textarea, > "http://www.w3.org/2002/xforms":trigger, > "http://www.w3.org/1999/xhtml":form, "http://www.w3.org/1999/xhtml":a, > "http://www.w3.org/1999/xhtml":span, > "http://www.w3.org/1999/xhtml":bdo, > "http://www.w3.org/1999/xhtml":map, > "http://www.w3.org/1999/xhtml":object, > "http://www.w3.org/1999/xhtml":img, "http://www.w3.org/1999/xhtml":tt, > "http://www.w3.org/1999/xhtml":i, "http://www.w3.org/1999/xhtml":b, > "http://www.w3.org/1999/xhtml":big, > "http://www.w3.org/1999/xhtml":small, > "http://www.w3.org/1999/xhtml":em, > "http://www.w3.org/1999/xhtml":strong, > "http://www.w3.org/1999/xhtml":dfn, > "http://www.w3.org/1999/xhtml":code, "http://www.w3.org/1999/xhtml":q, > "http://www.w3.org/1999/xhtml":samp, > "http://www.w3.org/1999/xhtml":kbd, > "http://www.w3.org/1999/xhtml":var, > "http://www.w3.org/1999/xhtml":cite, > "http://www.w3.org/1999/xhtml":abbr, > "http://www.w3.org/1999/xhtml":acronym, > "http://www.w3.org/1999/xhtml":sub, > "http://www.w3.org/1999/xhtml":sup, > "http://www.w3.org/1999/xhtml":input, > "http://www.w3.org/1999/xhtml":select, > "http://www.w3.org/1999/xhtml":textarea, > "http://www.w3.org/1999/xhtml":label, > "http://www.w3.org/1999/xhtml":button, > "http://www.w3.org/1999/xhtml":noscript, > "http://www.w3.org/1999/xhtml":ins, > "http://www.w3.org/1999/xhtml":del, > "http://www.w3.org/1999/xhtml":script}' is expected. 5. "fieldset" and "xf:group" have to be swapped. > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/spreadsheet.xml:51:57: UndeclaredPrefix: Cannot > resolve 'xsltforms:decimal' as a QName: the prefix 'xsltforms' is not > declared. 6. Yes, the corresponding namespace declaration is missing. > [schemavalidate] /Users/Shared/workspaces/workspace/XML > Stuff/XSLTForms-Demos/xpath.xml:30:13: cvc-complex-type.2.4.a: Invalid > content was found starting with element 'ajx:tabs'. One of > '{"http://www.w3.org/1999/xhtml":p, "http://www.w3.org/1999/xhtml":br, > "http://www.w3.org/1999/xhtml":h1, "http://www.w3.org/1999/xhtml":h2, > "http://www.w3.org/1999/xhtml":h3, "http://www.w3.org/1999/xhtml":h4, > "http://www.w3.org/1999/xhtml":h5, "http://www.w3.org/1999/xhtml":h6, > "http://www.w3.org/1999/xhtml":div, "http://www.w3.org/1999/xhtml":ul, > "http://www.w3.org/1999/xhtml":ol, "http://www.w3.org/1999/xhtml":dl, > "http://www.w3.org/1999/xhtml":pre, "http://www.w3.org/1999/xhtml":hr, > "http://www.w3.org/1999/xhtml":blockquote, > "http://www.w3.org/1999/xhtml":address, > "http://www.w3.org/1999/xhtml":fieldset, > "http://www.w3.org/1999/xhtml":table, > "http://www.w3.org/2002/xforms":group, > "http://www.w3.org/2002/xforms":repeat, > "http://www.w3.org/2002/xforms":switch, > "http://www.w3.org/2002/xforms":input, > "http://www.w3.org/2002/xforms":output, > "http://www.w3.org/2002/xforms":range, > "http://www.w3.org/2002/xforms":secret, > "http://www.w3.org/2002/xforms":select1, > "http://www.w3.org/2002/xforms":select, > "http://www.w3.org/2002/xforms":submit, > "http://www.w3.org/2002/xforms":textarea, > "http://www.w3.org/2002/xforms":trigger, > "http://www.w3.org/1999/xhtml":form, > "http://www.w3.org/1999/xhtml":noscript, > "http://www.w3.org/1999/xhtml":ins, > "http://www.w3.org/1999/xhtml":del, > "http://www.w3.org/1999/xhtml":script}' is expected. 7. ajx:tabs is an AJAXForms extension which will be depreciated in the next release Examples have been partially updated and committed in the SVN repository. Thanks! -Alain |