From 54a6026b1bb70dba2367caf3623796f8595b9170 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Fri, 14 Apr 2006 10:22:41 +0000 Subject: [PATCH] Created a new message-logging named template, log.message, by generalizing the old refentry.emit.message template and moving it out of common/refentry.xsl and into common/common.xsl --- xsl/common/common.xsl | 64 ++++++++ xsl/common/refentry.xsl | 353 ++++++++++++++++++---------------------- 2 files changed, 223 insertions(+), 194 deletions(-) diff --git a/xsl/common/common.xsl b/xsl/common/common.xsl index 6ce995b55..b97f2acc6 100644 --- a/xsl/common/common.xsl +++ b/xsl/common/common.xsl @@ -1995,4 +1995,68 @@ engine does not support it. + + + + Logs/emits formatted notes and warnings + + + The log.message function is a utility + function for logging/emitting formatted messages â€“ that is, + notes and warnings, along with a given log "level" and an + identifier for the "source" that the message relates to. + + + + + + level + + Text to indicate the message level + (Note or + Warning) + + + + source + + Text to identify source element the + notification/warning relates to + + + + message + + Message to lot/emit + + + + message-width + + Expected maximum message width + + + + + + Outputs a message (generally, to standard error). + + + + + + + 50 + : + + + + + diff --git a/xsl/common/refentry.xsl b/xsl/common/refentry.xsl index 70d71f033..ba322c9b2 100644 --- a/xsl/common/refentry.xsl +++ b/xsl/common/refentry.xsl @@ -283,26 +283,30 @@ - - Note - - meta manvol : No manvolnum - + + + Note + + meta manvol : No manvolnum + + - - Note - - meta manvol : Setting man section to 3 - - 3 + + + Note + + meta manvol : Setting man section to 3 + + + 3 1 @@ -390,13 +394,15 @@ - - Note - - meta date : No date. Using generated date - + + + Note + + meta date : No date. Using generated date + + @@ -564,24 +570,28 @@ - - Warn - - meta source : No valid fallback. Leaving empty - + + + Warn + + meta source : No valid fallback. Leaving empty + + - - Warn - - meta source : No fallback specified; leaving empty. - + + + Warn + + meta source : No fallback specified; leaving empty. + + @@ -730,20 +740,22 @@ - - Note - - meta source : No productname or alternative - - - Note - - meta source : No refmiscinfo@class=source - + + + Note + + meta source : No productname or alternative + + + Note + + meta source : No refmiscinfo@class=source + + @@ -857,20 +869,22 @@ - - Note - - meta version: No productnumber or alternative - - - Note - - meta version: No refmiscinfo@class=version - + + + Note + + meta version: No productnumber or alternative + + + Note + + meta version: No refmiscinfo@class=version + + @@ -1010,20 +1024,22 @@ - - Note - - meta manual : No ancestor with title - - - Note - - meta manual : No refmiscinfo@class=manual - + + + Note + + meta manual : No ancestor with title + + + Note + + meta manual : No refmiscinfo@class=manual + + @@ -1048,25 +1064,29 @@ - - Warn - - meta manual : No valid fallback. Leaving empty - + + + Warn + + meta manual : No valid fallback. Leaving empty + + - - Warn - - meta manual : No fallback specified; leaving empty. - + + + Warn + + meta manual : No fallback specified; leaving empty. + + @@ -1199,110 +1219,55 @@ - - Note - - meta - - - : No - - - Note - - meta - - - : No refmiscinfo@class= - - - Note - - meta - - - : Using - + + + Note + + meta + + + : No + + + Note + + meta + + + : No refmiscinfo@class= + + + Note + + meta + + + : Using + + - - - - Emits notes and warnings about missing metadata markup. - - - The refentry.emit.message function is a - utility function for emitting messages â€“ notes and - warnings â€“ about "missing" markup in refentry instances. - - - - - - level - - A string to indicate the message level - (Note or - Warning) - - - - refname - - The first refname in the refentry - - - - message - - The message to emit. - - - - - - Outputs a message (generally, to standard error). - - - - - - - - : - - - - - - -- 2.40.0