The root element is not declared
まだ誰も着手していません。
評価
調査の方向性
inline XML/XSD サンプルと、View / Schema から選択した別の FirstTry.xsd を使用して、XML Notepad で報告内容を再現します。issue では実装ファイル、テスト、または単一の期待される変更が指定されていません。完了条件を定義する前に、対象がスキーマの関連付け、inline スキーマの処理、ローカライズ、または XSD 生成のいずれであるかを明確にしてください。
索引モデルが issue の本文から書いたものです。
説明
Hello everybody,
I introduced xmlNotepad and the resulting file contains this:
<?xml version="1.0"?>
<root>
<Prepare time="15d" />
<Develop time="1y" />
<Promote />
</root>
Everything works OK, but the status bar tells me that the root element is not declared.
So I created a file FirstTry.xsd, with this contents:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="root"/>
</xs:schema>
As soon as this file was selected in View / Schema, the mention disappeared, so problem solved, but is it admitted to put the schema in the xml file, as done for instance in the basket.xml sample?
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="root"/>
</xs:schema>
<root>
<Prepare time="15j" />
<Develop time="1y" />
<Promote />
</root>
Anyway xmlNotepad stops to claim for undeclared element only once the xsd file is selected in View / Schema.
Well, once done, with this sample we learn that the basket element cannot contain text, perhaps that is another topic.
By the way, I notice that by default this error span in the status bar is the only element in the user interface that appears in French. Perhaps because .Net is installed in French?
Perhaps I should open another thread for this: it would be very handy that the tool be able to generate an xsd file.
Did I make a mistake? The code is much easier to read if the line-feeds are executed. By default the "Code" button of the forum generates a tick before and one after, I then tripled the ticks manually to respect the line-feeds. Oh, and I notice the triple tick at the end has to be on a separate line, otherwise the following paragraphs appear on one line each, which is not necessarily the most readable. And same for the triple tick at the beginning, otherwise the first line of code is lost.
- 主要言語
- C#
- スター
- 1.2k
- フォーク
- 240
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/XmlNotepad のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
microsoft/XmlNotepad#532 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
microsoft/XmlNotepad#517 · コメント 6 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
microsoft/XmlNotepad#500 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
microsoft/XmlNotepad#499 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
microsoft/XmlNotepad#490 · コメント 1 件 ·
microsoft/XmlNotepad の issue をすべて見る
似ている issue
-
[Simple] NavigationBar primary commands do not render AppBarButton.Content when it is a UIElementオープンcontrol/navigationbar kind/bug triage/untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
unoplatform/uno.toolkit.ui#1652 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
microsoft/copilot-camp#1053 ·
メンテナーはふだん 1 日以内に返信
-
bug effort:S P3
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
nightscout/nocturne#1861 ·
メンテナーはふだん 1 日以内に返信
-
agentic-workflows area/Docs partner/agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
microsoft/fluentui-blazor#5364 ·
メンテナーはふだん 1 日以内に返信