How to define list of types in xsd

How to define list of types in xsd
Hello
I have problem to define list of types defined in xml and translate it
to xsd 
Example I have : 

<book>
    <attribute name="ID1" type="l">444555666</attribute>
    <attribute name=" ID2" type="d">99999</attribute>
    <attribute name=" ID3" type="X">blah</attribute>
>/book<
>notebook<
    <attribute name="cat1" type="l">444555666</attribute>
    <attribute name=" cat2" type="d">99999</attribute>
    <attribute name=" cat3" type="X">blah</attribute> </notebook>

now as you see all elements are using types that are have to be
represents in the xsd , the types are pre defined and many element are
using it 
( in this example the book and notebook attribute) what is the right way
to represent it in xsd? 

Thanks allot

Received on Tuesday, 4 April 2006 12:38:12 UTC