Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Dependencies between attributes and elements

From: Michael Kay <mike@--------.--->
To: =?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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent