eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper
Validation error in generated XSD catalog for DTD files
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 201
- Forks
- 76
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 21
Description
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"...

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

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">
-->
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining the generated system-catalog.xml alongside catalog.dtd, then compare the publicIdentifier validation pattern with the valid identifier shown from application_1_3.dtd. Reproduce the errors with schema-based validation set to Always and confirm that valid DTD public identifiers no longer produce validation errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, xml
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100