-
Notifications
You must be signed in to change notification settings - Fork 103
Description
Describe the bug
application-client_11.xsd uses a fixed value for the version attribute with a value equal to 10:
<xsd:attribute name="version"
type="jakartaee:dewey-versionType"
fixed="10"
use="required">
<xsd:annotation>
<xsd:documentation>
The required value for the version is 10.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
That makes it impossible to validate an application-client.xml using such a xsd since this xml declaration is invalid:
<application-client xmlns="https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee
https://jakarta.ee/xml/ns/jakartaee/application-client_11.xsd"
version="11" id="app" metadata-complete="true">
In addition, the application-client_11.xsd documentation is still referring to Jakarta EE 10 namespaces instead of Jakarta EE 11. For example:
<xsd:documentation>
<![CDATA[
This is the XML Schema for the application client 10
deployment descriptor. The deployment descriptor must
be named "META-INF/application-client.xml" in the
application client's jar file. All application client
deployment descriptors must indicate the application
client schema by using the Jakarta EE namespace:
https://jakarta.ee/xml/ns/jakartaee
and indicate the version of the schema by
using the version element as shown below:
<application-client xmlns="https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee
https://jakarta.ee/xml/ns/jakartaee/application-client_10.xsd"
version="10">
...
</application-client>
The instance documents may indicate the published version of
the schema using the xsi:schemaLocation attribute for Jakarta EE
namespace with the following location:
https://jakarta.ee/xml/ns/jakartaee/application-client_10.xsd
]]>
</xsd:documentation>
To Reproduce
Just inspect the application-client_11.xsd file distributed in this repository
Expected behavior
It should be possible to use application-client_11.xsd to validate an application-client.xml file for Jakarta EE 11
Screenshots
N/A
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
N/A
Metadata
Metadata
Assignees
Labels
Type
Projects
Status