ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aron Olsen (JIRA)" <>
Subject [jira] [Commented] (XMLSCHEMA-48) How to inherit attributes down to final complex type
Date Thu, 11 May 2017 00:49:04 GMT


Aron Olsen commented on XMLSCHEMA-48:

Besides from this: My experience so far is, that this package is a great, great piece of software.
Thank you for that!

> How to inherit attributes down to final complex type
> ----------------------------------------------------
>                 Key: XMLSCHEMA-48
>                 URL:
>             Project: XmlSchema
>          Issue Type: Question
>    Affects Versions: 2.2.1
>            Reporter: Aron Olsen
>            Priority: Trivial
>             Fix For: 2.1.1
> Hi there,
> I am in the scenary of traversing the out-come of reading an XSD.
> I am somewhat trying to simplify the output of XMLSchema, in order to have the properties
(elements and attributes) mapped to DB-tables (complex types) and DB-table-columns (mayby
XSD-complex, geometries for instance or other DB-complex-types or XSD-simple, string, int
> I am bewildered about how attributes are to be inherited down to a complex XSD type when
deriving from another XSD-type by restriction. As I have learned so far, all attributes are
to be inherited by default, as opposed to element-properties of the base-type.
> Is this rightly understood by me?
> In my simplified model I keep track of the base-type hierarchy, and how the inheritance
is defined (extension, restriction, final). For each level I have tracked all the attributes
of each complex type. Do I need to "collect" base-type attributes not referenced in a current
complex type, when the current complex type is deriving from a super-type by restriction?
> In other words: Do XmlSchema do any automic inheritance derivations "behind the scenes",
or do we have to do such on our own behalf?
> As you will understand: If XmlSchema is not doing the attribute-inheriting for me, I
have to do it my self. This will involve "inherit all attributes from base-type which is not
mentioned in current type".
> Hope my question is understandable: How to inherit attributes when extending by restriction.
> /Aron

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message