Hi, > How do I define my own datatype for a table lookup? What I want is to > be able to define in my schema something like this: <xsd:element > name="states" type="tablelookup" category="states"/> where the > category field defines howI should get the list of enumerated values. I'm not really sure what you're asking but if it is "can I use my own attributes on XML Schema components?" then the answer is yes. XML Schema allow you to include any attribute from a namespace other than http://www.w3.org/2001/XMLSchema. In your example above that would be something like: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:other="www.other.com"> <xs:element name="states" type="tablelookup" other:category="states"/> ..... Cheers, /EddieReceived on Wednesday, 29 August 2001 20:25:11 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 22 July 2006 00:12:44 GMT