Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Problem with types derived from mixed complex types

From: "Michael Kay" <mhk@---.--.-->
To: "'Tait E Larson'" <telarson@--.---.--->
Date: 6/5/2004 12:38:00 AM
 

> -----Original Message-----
> From: Tait E Larson [mailto:telarson@u...] 
> Sent: 04 June 2004 19:42
> To: Michael Kay
> Cc: xmlschema-dev@w...
> Subject: RE: Problem with types derived from mixed complex types
> 
> 
> 
> 
> 
> Michael,
> 
> I'm not 100% sure your example works in this case.  In the 
> case described
> in the link below the base type is complex (i.e. contains 
> other elements).
> In your example I believe "xsl:generic-element-type" is simple.

No, it's complex.

This is covered by rule 2 in section 3.4.3:

2 If the <simpleContent> alternative is chosen, all of the following =
must be
true:
2.1 The type definition =B7resolved=B7 to by the =B7actual value=B7 of =
the base
[attribute] must be one of the following:
2.1.1 [...]
2.1.2 only if the <restriction> alternative is also chosen, a complex =
type
definition whose {content type} is mixed and a particle which is
=B7emptiable=B7, as defined in Particle Emptiable (=A73.9.6);
2.1.3 [...]
2.2 If clause 2.1.2 above is satisfied, then there must be a =
<simpleType>
among the [children] of <restriction>.

This validates OK in Xerces.

Michael Kay



From rschloss@u...  Sat Jun  5 05:08:15 2004
Return-Path: <rschloss@us.


transparent
Print
Mail
Digg
delicious
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