[xmlschemata] Re: Support of warnings by schema languages

From: Anderson, John <[email protected]>
Date: Fri Jun 28 2002 - 10:04:41 UTC

Eric,

Isn't this what maxOccurs is intended for? If the schema allows un unlimited
amount of bars, and your implementation doesn't, then your implementation
isn't conformant to the schema.

How is this different to a schema which specifies:
<!ELEMENT foo (bar*,somethingElse)>
when your implementation doesn't store somethingElse at all?

Or am I missing something here?

John

> -----Original Message-----
> From: Eric van der Vlist [mailto:vdv@dyomedea.com]
> Sent: 28 June 2002 09:08
> To: xmlschemata@xmlschemata.org
> Subject: [xmlschemata] Support of warnings by schema languages
>
>
>
> Hi,
>
> Suppose I have a schema allowing zero or more "bar" elements within
> "foo":
>
> foo= element {element bar {text()} *}
>
> and suppose I have written an implementation with my favorite
> programming language which stores "bars" in an array with a length of
> five.
>
> A document with 6 bars is valid per the definition of the markup
> language but my implementation will not support it correctly.
>
> Isn't it one of the cases where it would be nice to have a notion of
> "warning" and add a third state to the result of a validation which is
> currently a binary true|false ?
>
> I have been thinking about it recently and although not
> obvious I think
> that this could be implemented at least as an extension in Relax NG by
> adding an optional foreign "warning" attribute to the
> alternatives of a
> choice: if the schema is valid per an alternative holding a warning
> attribute then the warning is raised.
>
> Anyway, before investigating further, the question is probably to know
> if there is a real requirement for this feature!
>
> What do you think?
>
> Eric
> --
> See you in San Diego.
>
http://conferences.oreillynet.com/os2002/
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------

The information transmitted by this e-mail message is intended solely for
the use of the person to whom or entity to which it is addressed. The
message may contain information that is privileged and confidential.
Disclosure, dissemination, distribution, review, retransmission to, other
use of or taking any action in reliance upon this information by anyone
other than the intended recipient is prohibited. If you are not the intended
recipient, please do not disseminate, distribute or copy this communication,
by e-mail or otherwise. Instead, please notify us immediately by return
e-mail (including the original message with your reply) and then delete and
discard all copies of the message.

Although we have taken precautions to minimize the risk of transmitting
viruses we nevertheless advise you to carry out your own virus checks on any
attachment to this message. We accept no liability for any loss or damage
caused by viruses.
Received on Fri Jun 28 12:01:40 2002

This archive was generated by hypermail 2.1.8 : Fri Dec 03 2004 - 14:29:47 UTC