|
top
|
Subject: Re: schema changes not noticed by xml editor Author: (Deleted User) Date: 11 Feb 2002 08:29 AM
|
At 17.37 09/02/2002 -0500, you wrote:
>From: "Bruce Wallace"
>
>P.S. I have a theory as to when this may happen.
>It seems that hitting the "validate" button on a schema definition and
>getting an "ok" result doesnt really mean that it is a legal schema.
>I often dont get a complaint about the schema until I try and validate an
>XML doc against it.
>I suspect that when there is one of these "silent" schema errors it causes
>the XML doc window to not receive/process the schema update. (again, just
>a theory).
>
>P.P.S Im sure there must be a good reason why
>schemas "validate ok" even tho you get complaints only after trying to use
>them (?)
Bruce, when you press the button to validate an XMLSchema definition,
Stylus Studio validates it against the DTD published in the specs. This
ensure that an XMLSchema that fails this validation step is not a valid
XMLSchema document (as the specs puts it, "Although this DTD is
non-normative, any XML document which is not valid per this DTD, [...] is
almost certainly not a valid schema document.")
However, there are some checking that DTD-based validation is not able to
perform, and that the XMLSchema specs needs (i.e. given two optional
attributes, ensure that they are not both present); we are working to
improve the validation routine to perform this kind of checks.
Alberto
|
|
|