XML Schema and NG Orbeon engine

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

XML Schema and NG Orbeon engine

Tania Magnenat
Hi everybody!
If I use the NG Orbeon engine can I use XML Schema for validation? Or I
have to use Relax NG?

Thanks in advance!

Tania



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XML Schema and NG Orbeon engine

Erik Bruchez
Administrator
In XForms, you have to use XML Schema or xforms:bind.

In XPL, you can as before use XML Schema or Relax NG.

-Erik

Tania Magnenat wrote:
> Hi everybody!
> If I use the NG Orbeon engine can I use XML Schema for validation? Or I
> have to use Relax NG?
>
> Thanks in advance!
>
> Tania




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XML Schema and NG Orbeon engine

Tania Magnenat
Hi Erik!
Thank you for your answer.

I would validate XForms with XML Schema, but I have a problem. I add the
schema attribute to the model (<xforms:model
xmlns:xforms="http://www.w3.org/2002/xforms" schema="form-schema.xsd">)
and I have this error:

Cannot read from file /ops/pfc/form-schema.xsd

I don't understand why the engine search the XML schema in the directory
/ops/pfc/ and not in the current working directory.

Tania


Erik Bruchez wrote:

> In XForms, you have to use XML Schema or xforms:bind.
>
> In XPL, you can as before use XML Schema or Relax NG.
>
> -Erik
>
> Tania Magnenat wrote:
>> Hi everybody!
>> If I use the NG Orbeon engine can I use XML Schema for validation? Or
>> I have to use Relax NG?
>>
>> Thanks in advance!
>>
>> Tania
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XML Schema and NG Orbeon engine

Erik Bruchez
Administrator
Tania Magnenat wrote:

> Hi Erik!
> Thank you for your answer.
>
> I would validate XForms with XML Schema, but I have a problem. I add the
> schema attribute to the model (<xforms:model
> xmlns:xforms="http://www.w3.org/2002/xforms" schema="form-schema.xsd">)
> and I have this error:
>
> Cannot read from file /ops/pfc/form-schema.xsd
>
> I don't understand why the engine search the XML schema in the directory
> /ops/pfc/ and not in the current working directory.
You don't really have a concept of CWD in XML and HTML, but of URL base.
  In this case, the base was not correctly resolved as it was for
xforms:instance/src. I have fixed that in the latest CVS. In the
meanwhile, you can use an absolute URL ("oxf:/..."), which is what you
should do anyway if you are loading the schema from the OPS resources
(as opposed to retrieving it through HTTP).

-Erik



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws