hi all,
I want to define a schema in a model which it´s inside from the own model. I see the following : <xforms:model id="dmv-model" schema="oxf:/apps/forms/forms/DMV-14/schema.xsd" , but it call a external schema. I want something like this : <xforms:model id="dmv-model" schema="instance('schema-instance')" ... and the instance "schema-instance" is defined inside model "dmv-model" : <xforms:instance id="schema-instance" xxforms:readonly="true" xxforms:type="application"> <xs:schema targetNamespace="http://orbeon.org/oxf/examples/dmv" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="form"> .... </xforms:instance> When I do this, orbeon show me the following error : "White spaces are required between publicId and systemId." ... and I don´t know the reason. Any help will be gratefully. Thanks |
Administrator
|
The reason is that the @schema attribute on xforms:model must contain
a URI. You can't use the instance() function in that attribute. There is no way in Orbeon Forms at the moment to store a schema within an XForms instance. You *must* refer to a schema loaded through a URI. -Erik On Jan 23, 2008, at 9:38 AM, Dromela wrote: > > hi all, > > I want to define a schema in a model which it´s inside from the own > model. I > see the following : > > <xforms:model id="dmv-model" > schema="oxf:/apps/forms/forms/DMV-14/schema.xsd" > > , but it call a external schema. I want something like this : > > <xforms:model id="dmv-model" schema="instance('schema-instance')" ... > > and the instance "schema-instance" is defined inside model "dmv- > model" : > > <xforms:instance id="schema-instance" xxforms:readonly="true" > xxforms:type="application"> > <xs:schema targetNamespace="http://orbeon.org/oxf/examples/dmv" > elementFormDefault="qualified" attributeFormDefault="unqualified"> > <xs:element name="form"> > .... > </xforms:instance> > > When I do this, orbeon show me the following error : > > "White spaces are required between publicId and systemId." > > > ... and I don´t know the reason. Any help will be gratefully. Thanks > -- > View this message in context: http://www.nabble.com/schema-inside-the-own-model-tp15047626p15047626.html > Sent from the ObjectWeb OPS - Users mailing list archive at > Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Thanks Erik, then I must to realize a new call to Exist BBDD.
Bye
|
Hi,
The question is more difficult than it seems because I load from the eXist BBDD the model ( within the schema defined inside ) and the view. I separated the scheme and put in a separate file "schema.xsd", but when I load the model, the @schema attribute on xforms:model must contain a URI and I don´t know how to do it because the scheme may differ depending on model called. Any idea?? Thanks
|
Administrator
|
The URI in @schema will be interpreted relatively to the URI used to
load the XForms page. E.g. if you load your form with: http://localhost:8080/orbeon/my-form and you have: schema="my-schema.xsd" then the resolve URI for the schema will be: http://localhost:8080/orbeon/my-schema.xsd You could add a page flow entry to handle schema.xsd by fetching it from eXist. Or something along these lines... -Erik On Jan 24, 2008, at 1:08 AM, Dromela wrote: > > Hi, > > The question is more difficult than it seems because I load from the > eXist > BBDD the model ( within the schema defined inside ) and the view. I > separated the scheme and put in a separate file "schema.xsd", but > when I > load the model, the @schema attribute on xforms:model must contain a > URI and > I don´t know how to do it because the scheme may differ depending on > model > called. > > Any idea?? Thanks > > > Dromela wrote: >> >> >> Thanks Erik, then I must to realize a new call to Exist BBDD. >> >> Bye >> >> >> Erik Bruchez wrote: >>> >>> The reason is that the @schema attribute on xforms:model must >>> contain >>> a URI. You can't use the instance() function in that attribute. >>> >>> There is no way in Orbeon Forms at the moment to store a schema >>> within >>> an XForms instance. You *must* refer to a schema loaded through a >>> URI. >>> >>> -Erik >>> >>> On Jan 23, 2008, at 9:38 AM, Dromela wrote: >>> >>>> >>>> hi all, >>>> >>>> I want to define a schema in a model which it´s inside from the own >>>> model. I >>>> see the following : >>>> >>>> <xforms:model id="dmv-model" >>>> schema="oxf:/apps/forms/forms/DMV-14/schema.xsd" >>>> >>>> , but it call a external schema. I want something like this : >>>> >>>> <xforms:model id="dmv-model" schema="instance('schema- >>>> instance')" ... >>>> >>>> and the instance "schema-instance" is defined inside model "dmv- >>>> model" : >>>> >>>> <xforms:instance id="schema-instance" xxforms:readonly="true" >>>> xxforms:type="application"> >>>> <xs:schema targetNamespace="http://orbeon.org/oxf/examples/dmv" >>>> elementFormDefault="qualified" attributeFormDefault="unqualified"> >>>> <xs:element name="form"> >>>> .... >>>> </xforms:instance> >>>> >>>> When I do this, orbeon show me the following error : >>>> >>>> "White spaces are required between publicId and systemId." >>>> >>>> >>>> ... and I don´t know the reason. Any help will be gratefully. >>>> Thanks >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/schema-inside-the-own-model-tp15047626p15047626.html >>>> Sent from the ObjectWeb OPS - Users mailing list archive at >>>> Nabble.com. >>>> >>>> >>>> -- >>>> You receive this message as a subscriber of the [hidden email] >>>> mailing list. >>>> To unsubscribe: mailto:[hidden email] >>>> For general help: mailto:[hidden email]?subject=help >>>> OW2 mailing lists service home page: http://www.ow2.org/wws >>> >>> -- >>> Orbeon Forms - Web Forms for the Enterprise Done the Right Way >>> http://www.orbeon.com/ >>> >>> >>> >>> -- >>> You receive this message as a subscriber of the [hidden email] >>> mailing >>> list. >>> To unsubscribe: mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> OW2 mailing lists service home page: http://www.ow2.org/wws >>> >>> >> >> > > -- > View this message in context: http://www.nabble.com/schema-inside-the-own-model-tp15047626p15061112.html > Sent from the ObjectWeb OPS - Users mailing list archive at > Nabble.com. > Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |