eclipse-wildwebdeveloper / wildwebdeveloper

Simple and productive Web Development Tools in the Eclipse IDE
https://projects.eclipse.org/projects/tools.wildwebdeveloper
Eclipse Public License 2.0
189 stars 70 forks source link

Validation error in generated XSD catalog for DTD files #847

Open WolfgangHG opened 2 years ago

WolfgangHG commented 2 years ago

I installed the "JBoss Tools" plugin, which adds the JavaEE schemas to the old Eclipse XML catalog, and this one is converted to "system-catalog.xml". When opening this file and the setting "Enable schema based validation" is "Always"... schemabasedvalidation

... there are errors reported for all DTD files: validationerror

cvc-pattern-valid: Value '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' is not facet-valid with respect to pattern '[a-zA-Z0-9\-'\(\)+,./:=?;!*#@$_%]*' for type 'publicIdentifier'.

It seems the space is missing in the RegEx for CDATA? The attribute "publicIdentifier" is defined as "CDATA" according to "catalog.dtd".

According to "application_1_3.dtd", this is valid:

<!--
This is the XML DTD for the J2EE 1.3 application deployment
descriptor.  All J2EE 1.3 application deployment descriptors
must include a DOCTYPE of the following form:

  <!DOCTYPE application PUBLIC
    "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
    "http://java.sun.com/dtd/application_1_3.dtd">

-->
angelozerr commented 2 years ago

Coud you share please your catalog.xml?

WolfgangHG commented 2 years ago

Sorry, I forgot it. Here it is. system-catalog.zip

mickaelistria commented 1 year ago

Can you reproduce this issue with latest release or snapshots?

WolfgangHG commented 1 year ago

Yes - I downloaded "eclipseide-wild-web-developer-1.0.3-win32.win32.x86_64.zip", then installed JBoss Tools according to https://tools.jboss.org/downloads/jbosstools/2022-12/4.26.0.Final.html, which adds the catalog entries (I installed only three plugins in group "* Abridged JBoss Tools": "JBoss AS, WildFly & EAP Server Tools", "JBoss Runtime Detection Core" and "JBoss Tools Java Standard Tools"). When opening the catalog, the same error ist shown.