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] defining an xs:token element that has an attribute?

[ Lists Home | Date Index | Thread Index ]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dean Karres writes:

>     <xs:complexType name="InfoRefType">
>         <xs:complexContent>
>             <xs:extension base="xs:token">
>                 <xs:attribute name="href" type="xs:anyURI"/>
>             </xs:extension>
>         </xs:complexContent>
>     </xs:complexType>
>
> [does not work]

<xs:complexType name="InfoRefType">
 <xs:simpleContent>
     <xs:extension base="xs:token">
         <xs:attribute name="href" type="xs:anyURI"/>
     </xs:extension>
 </xs:simpleContent>
</xs:complexType>

is what you want.

ht
- -- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFDadeCkjnJixAXWBoRAqLEAJ4k2EZ8mUL+WdkCSTHnCFXwmGwDrQCdEDry
AfbXFH+cAds+JyeMbUzP7zI=
=AVYx
-----END PGP SIGNATURE-----




 

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

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