[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [xml-dev] Help regarding an XML attribute.
- From: Vance Christiaanse <cintech@twcny.rr.com>
- To: Ronald Bourret <rpbourret@rpbourret.com>,Wayne Steele <xmlmaster@hotmail.com>
- Date: Mon, 15 Oct 2001 16:28:28 -0400
Or
<xsd:complexType ...>
<xsd:complexContent>
<xsd:restriction base="xsd:string">
<xsd:attribute .../>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
> -----Original Message-----
> From: Ronald Bourret [mailto:rpbourret@rpbourret.com]
> Sent: Monday, October 15, 2001 2:20 PM
> To: Wayne Steele
> Cc: Huylanp@Oceanwide.com; xml-dev@lists.xml.org
> Subject: Re: [xml-dev] Help regarding an XML attribute.
>
>
> Wayne Steele wrote:
> >
> > >From: Huy-Lan Phan <Huylanp@Oceanwide.com>
> > ... I think only a complex element can have attributes ...
> >
> > You are correct. Only a complex element can have attributes.
>
> But don't forget that a complex type can have simple content.
>
> <complexType>
> <simpleContent>
> <restriction base="xsd:string" />
> </simpleContent>
> <attribute>...</attribute>
> ...
> </complexType>
>
> -- Ron
>
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this elist use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
>