Validation-plus: advise "@xml:id" and "@label" on divisions

オープン
#3,076 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
xml
領域
tooling

調査の方向性

The check belongs in pretext-validation-plus.xsl; read how its existing context-dependent checks are written, and read #1061 and #2991 for background on why Schematron was retired. Add an advisory message for division elements that lack xml:id or label, keeping the wording non-authoritative as the issue asks. Done when a sample document with an unlabelled, unidentified division produces the message and one with both attributes does not.

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

説明

Carried forward from #1061, which requested this as a Schematron warning; Schematron was retired in #2991, and pretext-validation-plus.xsl is now the home for context-dependent checks.

The check: an advisory message when a division lacks @xml:id (and now @label). Automatic identifiers are unstable across edits, and stable identifiers matter more than ever: cross-references, visible URLs, and Runestone database keys all lean on them, and current authoring guidance asks for both attributes, with matching values, on every division.

Original caveat, retained: the check cannot know the chunk level a publisher will elect, so the message should stay advisory rather than authoritative about which divisions matter.

Claude Fable 5, acting as a coding assistant for Rob Beezer

主要言語
XSLT
スター
466
フォーク
251
平均マージ
4分
マージ済み PR(30日)
13

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

PreTeXtBook/pretext のほかの issue

PreTeXtBook/pretext の issue をすべて見る

似ている issue

DevTools の issue をもっと見る

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

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