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

Definition of a validation-annotation inside a separate type #26

Open
hbast opened this issue Dec 12, 2017 · 0 comments
Open

Definition of a validation-annotation inside a separate type #26

hbast opened this issue Dec 12, 2017 · 0 comments

Comments

@hbast
Copy link

hbast commented Dec 12, 2017

Hey there,
I'm just wondering if it's possible to re-use the following simpleType in my XSD without defining
the validation annotation again and again. In the example below the validation annotation will be ignored and not be displayed inside the form. The validation is taken from the parent-element.

Bye, Holger

  <xs:simpleType name="comment">
    <xs:annotation i:validation="Please write a comment."/> <!-- ignored -->
    <xs:restriction base="xs:string">
	<xs:minLength value="1"/>
	<xs:maxLength value="100"/>
    </xs:restriction>
  </xs:simpleType>

...

  <xs:element name="comment_1" type="comment" minOccurs="1" maxOccurs="1">
     <xs:annotation i:title="Comment 1"
	xs:annotation i:validation="Please write a comment."/> <!-- this one is taken -->
  </xs:element>
@hbast hbast changed the title Definition of a validation-annotation inside a separate Type Definition of a validation-annotation inside a separate type Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant