From 8778b70aef35e2895c4d64cbadd571dfd3bb89f6 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Fri, 28 Oct 2005 12:35:15 +0000 Subject: [PATCH] New parameter: id.warnings. If non-zero, warnings are generated for titled objects that don't have titles. True by default; I wonder if this will be too aggressive? --- xsl/html/biblio.xsl | 4 ++++ xsl/html/component.xsl | 12 ++++++++++++ xsl/html/division.xsl | 8 ++++++++ xsl/html/formal.xsl | 2 ++ xsl/html/glossary.xsl | 6 ++++++ xsl/html/html.xsl | 38 ++++++++++++++++++++++++++++++++++++++ xsl/html/index.xsl | 6 ++++++ xsl/html/param.ent | 1 + xsl/html/param.xweb | 2 ++ xsl/html/refentry.xsl | 4 ++++ xsl/html/sections.xsl | 16 ++++++++++++++++ xsl/params/id.warnings.xml | 24 ++++++++++++++++++++++++ 12 files changed, 123 insertions(+) create mode 100644 xsl/params/id.warnings.xml diff --git a/xsl/html/biblio.xsl b/xsl/html/biblio.xsl index 9ff9fa366..ffb243ef9 100644 --- a/xsl/html/biblio.xsl +++ b/xsl/html/biblio.xsl @@ -15,6 +15,8 @@ + +
@@ -40,6 +42,8 @@ + +
diff --git a/xsl/html/component.xsl b/xsl/html/component.xsl index 0c2f8f16b..75b9b2cc4 100644 --- a/xsl/html/component.xsl +++ b/xsl/html/component.xsl @@ -73,6 +73,8 @@ + +
@@ -104,6 +106,8 @@ + +
@@ -131,6 +135,8 @@ + +
@@ -186,6 +192,8 @@ + +
@@ -244,6 +252,8 @@ + +
@@ -315,6 +325,8 @@ + +
diff --git a/xsl/html/division.xsl b/xsl/html/division.xsl index 15bf0531c..50799c9a6 100644 --- a/xsl/html/division.xsl +++ b/xsl/html/division.xsl @@ -15,6 +15,8 @@ + +
@@ -51,6 +53,8 @@ + +
@@ -89,6 +93,8 @@ + +
@@ -129,6 +135,8 @@ + +
diff --git a/xsl/html/formal.xsl b/xsl/html/formal.xsl index deed85446..0bf5fb986 100644 --- a/xsl/html/formal.xsl +++ b/xsl/html/formal.xsl @@ -16,6 +16,8 @@ + +
diff --git a/xsl/html/glossary.xsl b/xsl/html/glossary.xsl index afad5f847..8ca0223b5 100644 --- a/xsl/html/glossary.xsl +++ b/xsl/html/glossary.xsl @@ -15,6 +15,8 @@ + +
@@ -72,6 +74,8 @@ + +
@@ -297,6 +301,8 @@ GlossEntry ::= + + Warning: processing automatic glossary diff --git a/xsl/html/html.xsl b/xsl/html/html.xsl index 15fd486e9..e14a7b784 100644 --- a/xsl/html/html.xsl +++ b/xsl/html/html.xsl @@ -122,5 +122,43 @@ + + + + + + + + + + + + + + + + + + + + + ID recommended on + + + : + + + + ... + + + + + + + + + + diff --git a/xsl/html/index.xsl b/xsl/html/index.xsl index 352f50f31..d7c9cf660 100644 --- a/xsl/html/index.xsl +++ b/xsl/html/index.xsl @@ -21,6 +21,8 @@ + +
@@ -73,6 +75,8 @@ + +
@@ -104,6 +108,8 @@ + +
diff --git a/xsl/html/param.ent b/xsl/html/param.ent index db3ad4c9c..bc04b4bbf 100644 --- a/xsl/html/param.ent +++ b/xsl/html/param.ent @@ -279,3 +279,4 @@ + diff --git a/xsl/html/param.xweb b/xsl/html/param.xweb index 281ff739c..b1d1d273f 100644 --- a/xsl/html/param.xweb +++ b/xsl/html/param.xweb @@ -157,6 +157,7 @@ stylesheet like this: &suppress.footer.navigation; &header.rule; &footer.rule; +&id.warnings; Meta/*Info @@ -584,6 +585,7 @@ around all these parameters. + diff --git a/xsl/html/refentry.xsl b/xsl/html/refentry.xsl index 28389083d..fa21b88c9 100644 --- a/xsl/html/refentry.xsl +++ b/xsl/html/refentry.xsl @@ -15,6 +15,8 @@ + +
@@ -81,6 +83,8 @@ + +
diff --git a/xsl/html/sections.xsl b/xsl/html/sections.xsl index 50106a98c..6628cc9cf 100644 --- a/xsl/html/sections.xsl +++ b/xsl/html/sections.xsl @@ -17,6 +17,8 @@ + +
@@ -92,6 +94,8 @@ + +
@@ -139,6 +143,8 @@ + +
@@ -182,10 +188,14 @@ + + + +
@@ -233,6 +243,8 @@ + +
@@ -280,6 +292,8 @@ + +
@@ -327,6 +341,8 @@ + +
diff --git a/xsl/params/id.warnings.xml b/xsl/params/id.warnings.xml new file mode 100644 index 000000000..37be8e6eb --- /dev/null +++ b/xsl/params/id.warnings.xml @@ -0,0 +1,24 @@ + + +id.warnings +boolean + + +id.warnings +Should warnings be generated for titled elements without IDs? + + + + + + + + +Description + +If non-zero, the stylesheet will issue a warning for +any element (other than the root element) which +has a title but does not have an ID. + + + -- 2.40.0