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 ...
|
|
|
|