W3C home > Mailing lists > Public > www-forms@w3.org > April 2006

Re: Digging through section 6.2.1 / multiple types for an element

From: Allan Beaufour <beaufour@gmail.com>
Date: Wed, 5 Apr 2006 15:57:53 +0200
Message-ID: <90d6cb0e0604050657u21e126ebs3a5ab5f18e765302@mail.gmail.com>
To: "Nick_Van_den_Bleeken@inventivedesigners.com" <Nick_Van_den_Bleeken@inventivedesigners.com>
Cc: www-forms@w3.org

On 4/5/06, Nick_Van_den_Bleeken@inventivedesigners.com
<Nick_Van_den_Bleeken@inventivedesigners.com> wrote:
> > So how bind type="" mixes with other types also belongs in schema
> > land, which says:
> > "1.2.1.2.4 If there is also a processor-stipulated type definition,
> > the ·local type definition· must be validly derived from that type
> > definition given its {prohibited substitutions}, as defined in Type
> > Derivation OK (Complex) (§3.4.6) (if it is a complex type definition),
> > or given the empty set, as defined in Type Derivation OK (Simple)
> > (§3.14.6) (if it is a simple type definition)."
> > [http://www.w3.org/TR/xmlschema-1/#cvc-elt]
>
> But if this is the case, then when you have an attribute of type string in
> your schema you can't restrict it by using a type contsraint to an URI by
> using anyURI?

Not as far as I can see, no. If it is xsd:string, any further
refinements needs to derive from xsd:string.

But as I wrote, I'm no schema master.

--
... Allan
Received on Wednesday, 5 April 2006 13:58:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:03 GMT