Schema validation and alerts

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

Schema validation and alerts

Jacques-Alexandre Gerber
Hi,

I now have schema validation of Xforms working thanks to your support.
However, the alert sign always shows next to each control that is bound
to an element of the schema, even if the control contains data that is
valid according to the schema. Is this a known issue or is there
anything I can do about it?

(Note: I have not updated the engine for quite some time, so it might
have been fixed in more recent builds)

JAG



--
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: Schema validation and alerts

Alexander Žaťko
It looks like this question was discussed just a couple of days ago.
Are you using classic, or NG XForms engine?


On Dec 16, 2005, at 10:01 AM, Jacques-Alexandre Gerber wrote:

> Hi,
>
> I now have schema validation of Xforms working thanks to your support.
> However, the alert sign always shows next to each control that is bound
> to an element of the schema, even if the control contains data that is
> valid according to the schema. Is this a known issue or is there
> anything I can do about it?
>
> (Note: I have not updated the engine for quite some time, so it might
> have been fixed in more recent builds)
>
> JAG
>
>
> --
> 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: Schema validation and alerts

Jacques-Alexandre Gerber
In reply to this post by Jacques-Alexandre Gerber
> It looks like this question was discussed just a couple of days ago.

Oh, sorry. Could you tell me the name of the thread? I looked quickly at
the archive before asking but did not find it.

> Are you using classic, or NG XForms engine?

I'm not sure. Whatever is coming with the build by default, I guess. How
can I tell?

JAG


On Dec 16, 2005, at 10:01 AM, Jacques-Alexandre Gerber wrote:

> Hi,
>
> I now have schema validation of Xforms working thanks to your support.
> However, the alert sign always shows next to each control that is
> bound to an element of the schema, even if the control contains data
> that is valid according to the schema. Is this a known issue or is
> there anything I can do about it?
>
> (Note: I have not updated the engine for quite some time, so it might
> have been fixed in more recent builds)
>
> JAG
>
>
> --
> 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: Schema validation and alerts

Alexander Žaťko
Look at this thread:

http://www.objectweb.org/wws/arc/ops-users/2005-12/msg00207.html

Does page element in your page-flow contain xforms element? If so, then
you are using Classic XForms engine.

A.

On Dec 16, 2005, at 10:30 AM, Jacques-Alexandre Gerber wrote:

>> It looks like this question was discussed just a couple of days ago.
>
> Oh, sorry. Could you tell me the name of the thread? I looked quickly
> at
> the archive before asking but did not find it.
>
>> Are you using classic, or NG XForms engine?
>
> I'm not sure. Whatever is coming with the build by default, I guess.
> How
> can I tell?
>
> JAG
>
> On Dec 16, 2005, at 10:01 AM, Jacques-Alexandre Gerber wrote:
>
>> Hi,
>>
>> I now have schema validation of Xforms working thanks to your support.
>> However, the alert sign always shows next to each control that is
>> bound to an element of the schema, even if the control contains data
>> that is valid according to the schema. Is this a known issue or is
>> there anything I can do about it?
>>
>> (Note: I have not updated the engine for quite some time, so it might
>> have been fixed in more recent builds)
>>
>> JAG
>>
>>
>> --
>> 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



--
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: Schema validation and alerts

Erik Bruchez
Administrator
In reply to this post by Jacques-Alexandre Gerber
Jacques-Alexandre Gerber wrote:

>>It looks like this question was discussed just a couple of days ago.
>
>
> Oh, sorry. Could you tell me the name of the thread? I looked quickly at
> the archive before asking but did not find it.
>
>
>>Are you using classic, or NG XForms engine?
>
>
> I'm not sure. Whatever is coming with the build by default, I guess. How
> can I tell?
If you are using an "xforms" attribute on page elements, then you are
using Classic, otherwise NG. Of course the recommendation is to use NG,
which provides 10 times more features than Classic.

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

Re: Schema validation and alerts

Erik Bruchez
Administrator
In reply to this post by Jacques-Alexandre Gerber
Jacques-Alexandre Gerber wrote:

> Hi,
>
> I now have schema validation of Xforms working thanks to your support.
> However, the alert sign always shows next to each control that is bound
> to an element of the schema, even if the control contains data that is
> valid according to the schema. Is this a known issue or is there
> anything I can do about it?
>
> (Note: I have not updated the engine for quite some time, so it might
> have been fixed in more recent builds)
The alert sign should definitely not appear if there is no error. See
attached screenshot for an example of error icon (for "First Name") and
no error icon ("Suffix").

I recommend upgrading to beta 4 in any case.

-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

error.png (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Schema validation and alerts

Jacques-Alexandre Gerber
In reply to this post by Jacques-Alexandre Gerber
No xforms attribute in my page-flow, so I must be using NG. I'll try to
provide you with a simple example that reproduces the issue.

JAG

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: Friday, December 16, 2005 4:51 PM
To: [hidden email]
Subject: Re: [ops-users] Schema validation and alerts

Jacques-Alexandre Gerber wrote:

>>It looks like this question was discussed just a couple of days ago.
>
>
> Oh, sorry. Could you tell me the name of the thread? I looked quickly
> at the archive before asking but did not find it.
>
>
>>Are you using classic, or NG XForms engine?
>
>
> I'm not sure. Whatever is coming with the build by default, I guess.
> How can I tell?
If you are using an "xforms" attribute on page elements, then you are
using Classic, otherwise NG. Of course the recommendation is to use NG,
which provides 10 times more features than Classic.

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

RE: Schema validation and alerts

Jacques-Alexandre Gerber
In reply to this post by Jacques-Alexandre Gerber
I have attached a simple example (test.xml, to validate with test.xsd).
I also attached a screenshot (result.jpg) showing the alert sign even
though the control contains a valid string.

I will update the engine to see if it makes a difference.

Thanks,

JAG

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: Friday, December 16, 2005 4:56 PM
To: [hidden email]
Subject: Re: [ops-users] Schema validation and alerts

Jacques-Alexandre Gerber wrote:

> Hi,
>
> I now have schema validation of Xforms working thanks to your support.
> However, the alert sign always shows next to each control that is
> bound to an element of the schema, even if the control contains data
> that is valid according to the schema. Is this a known issue or is
> there anything I can do about it?
>
> (Note: I have not updated the engine for quite some time, so it might
> have been fixed in more recent builds)
The alert sign should definitely not appear if there is no error. See
attached screenshot for an example of error icon (for "First Name") and
no error icon ("Suffix").

I recommend upgrading to beta 4 in any case.

-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

result.jpg (2K) Download Attachment
test.xsd (476 bytes) Download Attachment
test.xml (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Schema validation and alerts

Jacques-Alexandre Gerber
In reply to this post by Jacques-Alexandre Gerber
It seems I am getting the same behavior with the latest ops.war I just
downloaded from http://forge.objectweb.org/nightlybuilds/ops/ops/

JAG

-----Original Message-----
From: Jacques-Alexandre Gerber
Sent: Friday, December 16, 2005 5:10 PM
To: [hidden email]
Subject: RE: [ops-users] Schema validation and alerts

I have attached a simple example (test.xml, to validate with test.xsd).
I also attached a screenshot (result.jpg) showing the alert sign even
though the control contains a valid string.

I will update the engine to see if it makes a difference.

Thanks,

JAG

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: Friday, December 16, 2005 4:56 PM
To: [hidden email]
Subject: Re: [ops-users] Schema validation and alerts

Jacques-Alexandre Gerber wrote:

> Hi,
>
> I now have schema validation of Xforms working thanks to your support.
> However, the alert sign always shows next to each control that is
> bound to an element of the schema, even if the control contains data
> that is valid according to the schema. Is this a known issue or is
> there anything I can do about it?
>
> (Note: I have not updated the engine for quite some time, so it might
> have been fixed in more recent builds)
The alert sign should definitely not appear if there is no error. See
attached screenshot for an example of error icon (for "First Name") and
no error icon ("Suffix").

I recommend upgrading to beta 4 in any case.

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

Re: Schema validation and alerts

Erik Bruchez
Administrator
In reply to this post by Jacques-Alexandre Gerber
Add elementFormDefault="qualified" to the root element of the schema,
and it works. The default value of that attribute is "unqualified". If
you use "unqualified", the schema validator assumes that the element
name in the input document is in no namespace.

Oh well, that's XML Schema for you. Check out this article for
recommendations about XML Schema best practices:

   http://www.xml.com/pub/a/2002/11/20/schemas.html?page=2

In particular, it answers the question of "Why You Should Always Set
elementFormDefault to 'qualified'" ;-)

-Erik

Jacques-Alexandre Gerber wrote:

> I have attached a simple example (test.xml, to validate with test.xsd).
> I also attached a screenshot (result.jpg) showing the alert sign even
> though the control contains a valid string.
>
> I will update the engine to see if it makes a difference.
>
> Thanks,
>
> JAG
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
> Sent: Friday, December 16, 2005 4:56 PM
> To: [hidden email]
> Subject: Re: [ops-users] Schema validation and alerts
>
> Jacques-Alexandre Gerber wrote:
>
>>Hi,
>>
>>I now have schema validation of Xforms working thanks to your support.
>>However, the alert sign always shows next to each control that is
>>bound to an element of the schema, even if the control contains data
>>that is valid according to the schema. Is this a known issue or is
>>there anything I can do about it?
>>
>>(Note: I have not updated the engine for quite some time, so it might
>>have been fixed in more recent builds)
>
>
> The alert sign should definitely not appear if there is no error. See
> attached screenshot for an example of error icon (for "First Name") and
> no error icon ("Suffix").
>
> I recommend upgrading to beta 4 in any case.
>
> -Erik
>
>
> ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
> <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:f="http://orbeon.org/oxf/xml/formatting">
>     <xhtml:head>
>         <xforms:model schema="/test.xsd">>
>             <xforms:instance id="input">
>             <input xmlns="http://www.example.com">
>             <test>hello</test>
>             </input>
>             </xforms:instance>
>         </xforms:model>
>     </xhtml:head>
>     <xhtml:body>
>    <xhtml:p>
> <xforms:input xmlns:test="http://www.example.com" ref="instance('input')/test:test"/>
>    </xhtml:p>
>     </xhtml:body>
> </xhtml:html>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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: Schema validation and alerts

Jacques-Alexandre Gerber
In reply to this post by Jacques-Alexandre Gerber
Yes, that was it! Thanks!

JAG

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: Friday, December 16, 2005 5:30 PM
To: [hidden email]
Subject: Re: [ops-users] Schema validation and alerts

Add elementFormDefault="qualified" to the root element of the schema,
and it works. The default value of that attribute is "unqualified". If
you use "unqualified", the schema validator assumes that the element
name in the input document is in no namespace.

Oh well, that's XML Schema for you. Check out this article for
recommendations about XML Schema best practices:

   http://www.xml.com/pub/a/2002/11/20/schemas.html?page=2

In particular, it answers the question of "Why You Should Always Set
elementFormDefault to 'qualified'" ;-)

-Erik

Jacques-Alexandre Gerber wrote:
> I have attached a simple example (test.xml, to validate with
test.xsd).

> I also attached a screenshot (result.jpg) showing the alert sign even
> though the control contains a valid string.
>
> I will update the engine to see if it makes a difference.
>
> Thanks,
>
> JAG
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
> Bruchez
> Sent: Friday, December 16, 2005 4:56 PM
> To: [hidden email]
> Subject: Re: [ops-users] Schema validation and alerts
>
> Jacques-Alexandre Gerber wrote:
>
>>Hi,
>>
>>I now have schema validation of Xforms working thanks to your support.
>>However, the alert sign always shows next to each control that is
>>bound to an element of the schema, even if the control contains data
>>that is valid according to the schema. Is this a known issue or is
>>there anything I can do about it?
>>
>>(Note: I have not updated the engine for quite some time, so it might
>>have been fixed in more recent builds)
>
>
> The alert sign should definitely not appear if there is no error. See
> attached screenshot for an example of error icon (for "First Name")
> and no error icon ("Suffix").
>
> I recommend upgrading to beta 4 in any case.
>
> -Erik
>
>
> ----------------------------------------------------------------------
> --
>
>
> ----------------------------------------------------------------------
> --
>
> <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:f="http://orbeon.org/oxf/xml/formatting">

>     <xhtml:head>
>         <xforms:model schema="/test.xsd">>
>             <xforms:instance id="input">
>             <input xmlns="http://www.example.com">
>             <test>hello</test>
>             </input>
>             </xforms:instance>
>         </xforms:model>
>     </xhtml:head>
>     <xhtml:body>
>    <xhtml:p>
> <xforms:input xmlns:test="http://www.example.com"
ref="instance('input')/test:test"/>

>    </xhtml:p>
>     </xhtml:body>
> </xhtml:html>
>
>
> ----------------------------------------------------------------------
> --
>
>
> --
> 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: Schema validation and alerts

Erik Bruchez
Administrator
In reply to this post by Erik Bruchez
Replying to my own email: I forgot to advise also using online Schema
validators such as this one to check whether a particular XML document
passes validation or not:

   http://tools.decisionsoft.com/schemaValidate.html

There are others such tools around as well.

-Erik

Erik Bruchez wrote:

> Add elementFormDefault="qualified" to the root element of the schema,
> and it works. The default value of that attribute is "unqualified". If
> you use "unqualified", the schema validator assumes that the element
> name in the input document is in no namespace.
>
> Oh well, that's XML Schema for you. Check out this article for
> recommendations about XML Schema best practices:
>
>   http://www.xml.com/pub/a/2002/11/20/schemas.html?page=2
>
> In particular, it answers the question of "Why You Should Always Set
> elementFormDefault to 'qualified'" ;-)
>
> -Erik
>
> Jacques-Alexandre Gerber wrote:
>
>> I have attached a simple example (test.xml, to validate with test.xsd).
>> I also attached a screenshot (result.jpg) showing the alert sign even
>> though the control contains a valid string.
>>
>> I will update the engine to see if it makes a difference.
>>
>> Thanks,
>>
>> JAG
>> -----Original Message-----
>> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
>> Sent: Friday, December 16, 2005 4:56 PM
>> To: [hidden email]
>> Subject: Re: [ops-users] Schema validation and alerts
>>
>> Jacques-Alexandre Gerber wrote:
>>
>>> Hi,
>>>
>>> I now have schema validation of Xforms working thanks to your support.
>>> However, the alert sign always shows next to each control that is
>>> bound to an element of the schema, even if the control contains data
>>> that is valid according to the schema. Is this a known issue or is
>>> there anything I can do about it?
>>>
>>> (Note: I have not updated the engine for quite some time, so it might
>>> have been fixed in more recent builds)
>>
>>
>>
>> The alert sign should definitely not appear if there is no error. See
>> attached screenshot for an example of error icon (for "First Name") and
>> no error icon ("Suffix").
>>
>> I recommend upgrading to beta 4 in any case.
>>
>> -Erik
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> ------------------------------------------------------------------------
>>
>> <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
>> xmlns:xforms="http://www.w3.org/2002/xforms"
>> xmlns:xs="http://www.w3.org/2001/XMLSchema"
>> xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>> xmlns:ev="http://www.w3.org/2001/xml-events"
>> xmlns:f="http://orbeon.org/oxf/xml/formatting">
>>     <xhtml:head>
>>         <xforms:model schema="/test.xsd">>
>>             <xforms:instance id="input">
>>                 <input xmlns="http://www.example.com">
>>                     <test>hello</test>
>>                 </input>
>>             </xforms:instance>
>>         </xforms:model>
>>     </xhtml:head>
>>     <xhtml:body>
>>         <xhtml:p>
>>         <xforms:input xmlns:test="http://www.example.com"
>> ref="instance('input')/test:test"/>
>>         </xhtml:p>
>>     </xhtml:body>
>> </xhtml:html>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> --
>> 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