eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper

Validation error in generated XSD catalog for DTD files

Đang mở
#847 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
Java
Star
201
Fork
76
Merge trung bình
4 ngày 7 giờ
Pull request đã merge (30 ngày)
21

Mô tả

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

-->


Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách kiểm tra system-catalog.xml được tạo cùng với catalog.dtd, sau đó so sánh mẫu xác thực publicIdentifier với identifier hợp lệ được hiển thị trong application_1_3.dtd. Tái hiện các lỗi khi đặt xác thực dựa trên schema thành Always và xác nhận rằng các DTD public identifier hợp lệ không còn tạo ra lỗi xác thực.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java, xml
Lĩnh vực
devtools
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.