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

  • From: Ronald Bourret <rpbourret@r...>
  • To: Wayne Steele <xmlmaster@h...>
  • Date: Mon, 15 Oct 2001 11:19:50 -0700

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

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