Next in thread → Next in month →

Re: [xml-dev] defining an xs:token element that has an attribute?

From
<>
To
Dean Karres <>
Date
2005-11-03T09:25:22Z
ID
<>
Thread
Re: [xml-dev] defining an xs:token element that has an attribute?
-----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: 
                   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-----
Next in thread → Next in month →