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

Add Contributed JSP Taglibrary XSD #9

Merged
merged 3 commits into from
Jun 11, 2020

Conversation

ivargrimstad
Copy link
Member

Signed-off-by: Ivar Grimstad ivar.grimstad@eclipse-foundation.org

Signed-off-by: Ivar Grimstad <ivar.grimstad@eclipse-foundation.org>
Signed-off-by: Ivar Grimstad <ivar.grimstad@eclipse-foundation.org>
@hussainnm
Copy link
Contributor

Adding a simple test

<taglib xmlns="https://jakarta.ee/xml/ns/jakartaee"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
 xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee web-jsptaglibrary_3_0.xsd"
 version="3.0">
  <tlib-version>1.0</tlib-version>
  <short-name>foo</short-name>
</taglib>
<?validateAgainst web-jsptaglibrary_3_0.xsd ?>

reveals the following error:

sax error: 23:cvc-complex-type.3.1: Value '3.0' of attribute 'version' of element 'taglib' is not valid with respect to the corresponding attribute use. Attribute 'version' has a fixed value of '2.1'.

You can add this test to verify the xsd and also change the fixed value from 2.1 to 3.0 on line 692 to fix this error.

Signed-off-by: Ivar Grimstad <ivar.grimstad@eclipse-foundation.org>
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

Successfully merging this pull request may close these issues.

2 participants