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

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 UTC