Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Incorrect DTD for wstcref-Files

オープン 初心者向け
#7,876 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
xml
領域
tooling

調査の方向性

issue にリンクされている platform/core.windows/src/org/netbeans/core/windows/resources/tc-ref2_2.dtd から始め、その previousMode 宣言を生成された tc-ref バージョン 2.2 の例と比較します。修正した DTD と永続化のサンプルファイルを ant xmlvalidate タスクで検証します。完了とは、生成されたファイルが検証に合格し、DTD が XML 勧告に従って解析されることを意味します。

索引モデルが issue の本文から書いたものです。

説明

kind:bug needs:triage
Apache NetBeans version

Apache NetBeans 23

What happened

The DTD for wstcref-Files of version 2.2 (https://github.com/apache/netbeans/blob/master/platform/core.windows/src/org/netbeans/core/windows/resources/tc-ref2_2.dtd) contains two errors:

  1. The previousMode tag is required by the DTD, but not in the application runtime

  2. The previousMode attribute list is not formed well according to the W3C Recommendation (see https://www.w3.org/TR/2006/REC-xml11-20060816/): The name attribute has no so called Attribute Default (#REQUIRED, #IMPLIED or definition)

Language / Project Type / NetBeans Component

NetBeans Platform DTDs

How to reproduce

To reproduce the first problem mentioned above simple try to validate the persistance files generated by the NetBeans platform (can be found in the ProgramData folder), e.g.:

<?xml version="1.0" encoding="UTF-8"?>

<tc-ref version="2.2">
    <tc-id id="XXTopComponent" />
    <state opened="false" />
</tc-ref>

As you can see, even the generated files do not contain a previousMode-tag, cause it is only needed for docking/sliding operations.

The second problem occurs if you want to validate any wstcref-File of version 2.2 using the ant xmlvalidate task, cause it cannot parse the DTD referenced due to the wong formed attribute list of the previousMode tag.

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows 10

JDK

17

Apache NetBeans packaging

Apache NetBeans platform

Anything else

No response

Are you willing to submit a pull request?

Yes

主要言語
Java
スター
3.1k
フォーク
939
平均マージ
5日 15時間
マージ済み PR(30日)
24

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/netbeans のほかの issue

apache/netbeans の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。