jakartaee / jakartaee-schemas

Other
7 stars 20 forks source link

Add Contributed JSP Taglibrary XSD #9

Closed ivargrimstad closed 4 years ago

ivargrimstad commented 4 years ago

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

hussainnm commented 4 years ago

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.