[Home] [By Thread] [By Date] [Recent Entries]

  • From: Vance Christiaanse <cintech@t...>
  • To: Ronald Bourret <rpbourret@r...>,Wayne Steele <xmlmaster@h...>
  • 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@r...]
> Sent: Monday, October 15, 2001 2:20 PM
> To: Wayne Steele
> Cc: Huylanp@O...; xml-dev@l...
> Subject: Re:  Help regarding an XML attribute.
> 
> 
> Wayne Steele wrote:
> > 
> > >From: Huy-Lan Phan <Huylanp@O...>
> > ... 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>
> 

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member