logo       

Related Msgs: audio.musicbrai...    enbd.general/20...    ietf.idr/2002-0...    java.ant-contri...    gnu.make.genera...    qplus.devel/200...    video.freevo.cv...    os.netbsd.ports...    yellowdog.gener...    xfree86.cvs/200...    search.nutch.us...    freedesktop.xse...    programming.swi...    capabilities.ge...    telephony.pbx.a...    mail.sylpheed.c...    db.firebase.por...    boot-loaders.u-...    recreation.radi...    netbsd.bugs/200...    web.zope.plone....    user-groups.lin...   

Re: [Chiba-users] Use of schema attribute in model tag: msg#00057

Subject: Re: [Chiba-users] Use of schema attribute in model tag
surabhi-d0BvcczcKTUAvxtiuMwx3w@xxxxxxxxxxxxxxxx wrote:

Hi ,

What does "schema" attribute in model tag signify ?
that's pretty spec-conformant. you can read about all details in the spec but here's a short version:

it allows you to link to an external XML Schema with datatype definitions - to be exact only datatype definitions in the referenced file will be loaded (in contrast to structural ones).

these types may then be used with xforms:bind elements to define the type of the instance node the bind is pointing to. sure, these will then be revalidated during revalidate calls.

<xforms:model xforms:id="model_0" *xforms:schema*="xforms/purchaseOrderRepeats/purchaseOrderRepeats.xsd">

Will the constraints specified in schema validated by the chiba servlet ? We want to validate the data directly using the model schema instead of explicitly giving bind constraints.Is it possible ?
the servlet is only the wrapper - the actual work does ChibaBean which represents the core XForms processor.

revalidation of schemas sure is possible during init/submit (even structural one) but not during revalidate processing. this would make not much sense cause most often you can't map an validation error to one specific instance node and even more the messages you get from a validation xml parser wouldn't be adequate as user message and not even easily mappable to such.

note, that the xforms spec only specifies schema datatype validation (schema part 1) as requirement and does not include or require structural validation (part 2 of the spec).

but luckily Chiba contains a method to validate even full schemas (part 1+2) even if you have to hack your own connectors to use it. if interested look at org.chiba.xml.xforms.connector.AbstractConnector.validateSchema(...)

joern


Regards,
Surabhi Asthana
Team Leader
Spend Data Management
ZYCUS INC.
Ph : ++ 91 22 5640 7676 Extn. : 7803



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Home | blog view | USPTO Patent Archive (NEW!) | advertise | OSDir is an inevitable website. super tiny logo