Re: [Xsltforms-support] Syntax errors in the XSLTForms examples
Brought to you by:
alain-couthures
From: Owen N. <on...@gm...> - 2009-11-30 21:27:59
|
Leigh, I have no issue with RNG but have only passing familiarity with it. I believe that what I have produced provides a useful tool for XForms 1.1 developers familiar with XML-Schema. My understanding is that XSD and RNG are quite similar in expressive power and that it is possible to use tools like Trang to convert between them. Indeed, I've succeeded converting RNG to valid XSD using Trang in the past . I believe the syntax of the schema should be of no concern to the developer seeking to validate an instnce. To advance the cause of XForms, let's get useful tools in the hands of developers as quickly as possible. I believe it would be ideal to do that under the auspices of W3C. Obviously, semantic validation (e.g., XPath validation) is needed in addition to the syntactical validation an XSD provides. Online and offline validators that do that for XForms 1.1 would be a boon. However, I'm not personally in a position to contribute to such efforts at present. Best Owen Newnan On Mon, Nov 30, 2009 at 11:24 AM, Klotz, Leigh <Lei...@xe...>wrote: > We've recently (with Micah's permission) re-published the RNG schemas from > XFV as part of the XForms 1.1 Recommendation, with equal status to the W3C > XML Schema. > > See http://www.w3.org/TR/xforms11/#schema > > I've previously integrated Micah's RNC schema into the nXML package from > James Clark and use it for authoring and validation. > It would be good to do this again with the XForms 1.1 RNC schema. > > Leigh. > > > -----Original Message----- > From: Micah Dubinko [mailto:Mic...@ma...] > Sent: Monday, November 30, 2009 10:07 AM > To: Owen Newnan > Cc: xsl...@li... > Subject: Re: [Xsltforms-support] Syntax errors in the XSLTForms examples > > This is pretty similar to the approach taken by the XForms Validator (XFV), > which is online at > > http://xformsinstitute.com/validator/ > > It uses Relax NG schemas, which need to be updated to 1.1, plus XPath > validation. > > Source is available: http://sourceforge.net/projects/xfv/ > > I'd love to get more developers on the project... > > -m > > On Nov 28, 2009, at 1:03 PM, Owen Newnan wrote: > > > Alain, > > > > I do intend to launch an open source project providing tools for > XSD-based application development. However, that's a ways off. My XForms > tool is presently a prototype, a hack of the XHTML 1.0 schema. It appears > to me that a more rigorous implementation would be based on the XHTML 2.0 > XForms module, even though the XHTML charter is expiring (what do you > think?). Anyhow, I'd be glad to make a product of this and share it with > whoever is interested. That would of course require vehicles for posting, > entering bugs and providing support. Perhaps we could do that under > auspices of XSLTForms, or maybe I could accelerate setting up my project. > > > > I will attempt to build a more robust product and then get back to you. > > > > Cheers! > > Owen > > > > On Sat, Nov 28, 2009 at 6:51 AM, COUTHURES Alain < > ala...@ag...> wrote: > > 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/2! > 002/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":sa! > mp, "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/xf! > orms":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 > > > > > > > > > > > > -- > > Best, > > > > Owen Newnan > > > > cell 720 260-5753 > > home 303 697 1925 > > http://www.linkedin.com/in/OwenNewnan > > > > ---------------------------------------------------------------------- > > -------- Let Crystal Reports handle the reporting - Free Crystal > > Reports 2008 30-Day trial. Simplify your report design, integration > > and deployment - and focus on what you do best, core application > > coding. Discover what's new with Crystal Reports now. > > http://p.sf.net/sfu/bobj-july_________________________________________ > > ______ > > Xsltforms-support mailing list > > Xsl...@li... > > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july_______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > -- Best, Owen Newnan cell 720 260-5753 home 303 697 1925 http://www.linkedin.com/in/OwenNewnan |