- From: Jeni Tennison <jeni@jenitennison.com>
- Date: Wed, 5 Dec 2001 09:23:10 +0000
- To: Eddie Robertsson <eddie@allette.com.au>
- CC: Niko Suave <niko@alum.mit.edu>, xmlschema-dev@w3.org
Eddie,
>> > I don't understand exactly what you mean here. Are you talking about
>> > something like:
>> >
>> > <xs:complexType name="base">
>> > <xs:attribute name="name" type="xs:string"/>
>> > <xs:attribute name="dead" type="xs:boolean"/>
>> > <xs:anyAttribute namespace="##other" />
>> > </xs:complexType>
>> >
>> > <xs:complexType name="extension">
>> > <xs:complexContent>
>> > <xs:extension base="base">
>> > <xs:attribute name="xlink:href" type="xs:anyURI"
>> > use="prohibited" />
>
> Isn't the above attribute declaration invalid because as far as I
> know the name attribute must match an NCName? Maybe there is a
> special rule for this when you extend or restrict a complexType that
> I've missed out on...
No, sorry - that was a mistype on my part. I meant to use ref rather
than name:
<xs:complexType name="extension">
<xs:complexContent>
<xs:extension base="base">
<xs:attribute ref="xlink:href" use="prohibited" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
Received on Wednesday, 5 December 2001 04:23:53 UTC