eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper

Validation error in generated XSD catalog for DTD files

Open
#847 4 comments 0 reactions 0 assignees View on GitHub

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"...
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">

-->


Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.