Skip to content
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

XSD Import set Elements as Complex Type, when no datatype is defined #1034

Closed
1 task done
DavidBlaa opened this issue Dec 16, 2022 · 1 comment
Closed
1 task done
Assignees
Milestone

Comments

@DavidBlaa
Copy link
Member

Is there an existing issue for this?

  • I searched for a similar issue and didn't find a suitable one.

What is going wrong?

in the data cite xsd there are simple elements like given name that do not have a datatype.

https://schema.datacite.org/meta/kernel-4.4/metadata.xsd

Current Situation in the algo
If an element does not have a datatype, it is automatically considered a compelx type.
this leads in this case to the given name becoming a text input field.

How is it supposed to work?

the algorithm would have to be changed as follows.

If an element does not have a datatype but also contains other elements as children, one can assume that it is an element of the type string.

If this is set, a text input field is also specified in the form.

How can it be reproduced?

No response

Do you get any exceptions?

No response

What kind of system do you use?

No response

Which task(s) is/are related to this issue?

No response

@DavidBlaa
Copy link
Member Author

all changed in #1050

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants