users@jaxb.java.net

Re: derived attribute not accepted when validating

From: Thomas Plümpe <thomanski_at_gmx.de>
Date: Thu, 19 Jun 2003 14:28:03 +0200

> It doesn't inherit the "variable" attribute. When using restriction,
> only those components that are explicitely listed in the derived type
> are carried forward.
This is true for element declarations, model groups, and wildcards. As
per the XML Schema Errata document, it is *not* true for attribute
declarations:

"However, attribute declarations do not need to be repeated in the
derived type definition; in this example, RestrictedPurchaseOrderType
will inherit the orderDate attribute declaration from
PurchaseOrderType."
--> http://www.w3.org/2001/05/xmlschema-errata#e0-21

That is, I presume, why the BPEL authors only expressly prohibited the
use of three of the attributes while not reenumerating the optional
ones. Also note that both xsv and xerces accept the instance document as
valid.

Thomas