OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Schema issue with enumerated element content

[ Lists Home | Date Index | Thread Index ]

russ@weststreetconsulting.com writes:

> So far, I have the following, which satisfies #1, but I can't figure out how
> to add an attribute. Any ideas?
> 
> <xs:element name="ElemName">
>   <xs:complexType>
>     <xs:simpleContent>
>      .... 
>     </xs:simpleContent>
>>>>>  <xs:attribute name="attr" type="xs:string"/> <<<<< attributes go here
>   </xs:complexType>
> </xs:element>

ht
-- 
               Henry S. Thompson, Markup Technology Ltd.
     4 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- +44 (0) 7866 471 388
            Fax: (44) 131 650-4587, e-mail: ht@markuptechnology.com
                  URL: http://www.markup.co.uk/
[mail really from me _always_ has this .sig -- mail without it is forged spam]




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS