-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An LDD developer desires to inherit a class/attribute defined using DD_Associate_External_Class #324
Comments
…D_Associate_External_Class LDDTool needs to allow class/attributes defined using DD_Associate_External_Class to be inherited. The class and attribute defined using DD_Associate_External_Class must be defined within context (e.g., xpath) in order to be inherited by one or more sub classes. Resolves #324
…D_Associate_External_Class (#325) LDDTool needs to allow class/attributes defined using DD_Associate_External_Class to be inherited. The class and attribute defined using DD_Associate_External_Class must be defined within context (e.g., xpath) in order to be inherited by one or more sub classes. Resolves #324
Fix Errors:
|
…lement_flag> error LDDTool Geometry Partitioning Task - Remove the reported error "At least one class must be defined as an xs:Element. (<element_flag> set to true)". Since the dictionary is partioned, only one partition is required to have an <element_flag> set to "true". Resolves #324
@jshughes @jordanpadams
which results in the .xsd having
My question: do we care that pds:Internal_Reference has 2 required elements: lid_reference and reference_type? The Ingest_LDD only has the latter, so the output .xsd does also, so no lid_reference. |
@rchenatjpl doesn't internal reference require lid_reference all the time? I think the point of this new class is to extend permissible values for an attribute, but not change the definition of the class and it's associated attributes. Are you seeing some other unexpected behavior? @jshughes does this sound right? |
I guess the requester wants lddtool to do something else, but I'm unsure.
I hand-edited the dictionary to allow a minimal data label (im324b.xml):
GOOD: reference_type is now mandatory The hand-edited .sch and .xsd and the new minimal data label are in the Richard |
There are about three related issues regarding DD_Associate_External_Class. I am working a couple that Anne Raugh found associated with the Geometry LDD partitioning task. I am attaching the two Geom LDDs. I believe that Richard will also find the issue he found here. Richard, the classes are Body_Identification_Base and Frame_Identification_Base, both defined in GeomOrbit. |
@jshughes is this still and issue or has this been closed by some other bug fix / update? |
This issue can be closed since the original use cases involving DD_Associate_External_Class have been addressed. The results have been tested and accepted by the original SCR reporter. Background: Referring to the original issue pasted in below, the implication is that the class and attribute are being redefined. This is not exactly the case. In the current implementation the local namespace references the external class/attribute definition directly (e.g., pds:Internal_Reference - from the Common dictionary) and then "restricts" the attribute definition by defining new standard values in the local namespace. The resulting XML Schema references the external attribute using "ref:" and the local standard values are validated using Schematron rules. This means that the issues associated with local attribute redefinitions, e.g., "Measurement_Instrument_reference_type" have been resolved. These "redefinitions" are no longer created and the local references now refer to the definitions of the attribute in the external namespace, e.g., pds:reference_type and pds: Internal_Reference. Note: The issue of whether the attribute is actually redefined might arise in the future since currently there are DDWG discussions on the types of cross-referencing that should be allowed. ---Original_Issue--- |
thanks for the details @jshughes ! that is more than enough to close this out. |
LDDTool needs to allow class/attributes defined using DD_Associate_External_Class so that they can be inherited. The class and attribute defined using DD_Associate_External_Class must be defined within context (e.g., xpath) in order to be inherited by one or more sub classes.
Motivation
This is an additional feature that will support the partitioning of the Geometry Dictionary
The text was updated successfully, but these errors were encountered: