Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: Dependencies between attributes and elements [Thread Next] RE: Dependencies between attributes and elementsTo: =?iso-8859-1?Q?'Jo=E3o_Cruz_Morais'?= <napalm@----------.---> Date: 8/7/2007 1:22:00 PM > > Right now I'm using an element called int-vector to specify a > list of int values. Is it possible to make that element go > away and replace it for a generic one, with an attribute > specifying the vector type? In other words is it possible to > establish a relationship between the value of an element > attribute and his children? > Example: > > <vector type="int"> > <value>2</value> <!-- if not int throws a error --> </vector> > Yes, but only if the attribute has the magic name xsi:type and its value is the QName of a complex type definition in the schema. Michael Kay http://www.saxonica.com/ From paul@x... Tue Aug 07 16:05:56 2007 Received: from | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
