Turing off schema validation

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Turing off schema validation

Michał
I am working in project which are building xforms editor. While saving file editor is saving xml schema inside xforms:model tag (we use it while loading xforms document to editor). Our Xml schema may be big (simple version may have about 6 xs:import statements). When I try to open file by orbeon it has problem loading some schemas (e.g. http://crd.gov.pl/xml/schematy/adres/2009/03/06/adres.xsd). Loading other schemas sometimes takes very long time.

Is it possible to skip schema validation at all (I don't want it to load other schemas), but keep schema  definition inside a file.
Reply | Threaded
Open this post in threaded view
|

Re: Turing off schema validation

Maciej Arciuch
W dniu 2011-05-11 11:37, Michał pisze:

> I am working in project which are building xforms editor. While saving file
> editor is saving xml schema inside xforms:model tag (we use it while loading
> xforms document to editor). Our Xml schema may be big (simple version may
> have about 6 xs:import statements). When I try to open file by orbeon it has
> problem loading some schemas (e.g.
> http://crd.gov.pl/xml/schematy/adres/2009/03/06/adres.xsd). Loading other
> schemas sometimes takes very long time.
>
> Is it possible to skip schema validation at all (I don't want it to load
> other schemas), but keep schema  definition inside a file.
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Turing-off-schema-validation-tp3514258p3514258.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
Hi,

does this

<xforms:instance id="main"
/xxforms/:/validation/="/skip/">...</xforms:instance>

solve your problem?

Best regards,
--
Maciej Arciuch
projektant
tel. +48 22 564 2482



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

smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Turing off schema validation

Michał
Thank you for your answer. I tried it already and it haven't solve my problem. Even with this attribute Orbeon tries to load schemas defined in xs:import tag.

I attached a file which shows this problem (when you delete xs:schema it works). hello.html (download Save As. and open in orbeon)
Reply | Threaded
Open this post in threaded view
|

Re: Re: Turing off schema validation

Maciej Arciuch
W dniu 2011-05-11 12:56, Michał pisze:

> Thank you for your answer. I tried it already and it haven't solve my
> problem. Even with this attribute Orbeon tries to load schemas defined in
> xs:import tag.
>
> I attached a file which shows this problem (when you delete xs:schema it
> works).
> http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n3514379/hello.html
> hello.html  (download Save As. and open in orbeon)
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Turing-off-schema-validation-tp3514258p3514379.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
I've read again your initial post and the file attached. Am I correct that
- the schema is not required in the run-time of the form and
- you place the schema within the form just to have a compact
one-file-has-it-all format of your form editor's input file and the
schema will be picked up only by the form editor during design-time of
the form?

If so, consider writing a custom XPL pipeline, which will simply erase
the unnecessary schema before the XForms engine actually runs.

Best regards,
PS: xmlns:wnio="unassigned" is not a valid URI, this might cause some
trouble later
--
Maciej Arciuch
projektant
tel. +48 22 564 2482


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Turing off schema validation

Michał
Thank you for your answer. You are correct - this is what we want. I will look closely writing a custom XPL pipeline or we will write action that will delete schema before rendering in orbeon.