From ef389472d8ab3b14dfe10c6588a423d4e5084d1a Mon Sep 17 00:00:00 2001 From: David Cramer Date: Mon, 15 Sep 2008 19:18:09 +0000 Subject: [PATCH] Added a check to confirm that a footnoteref's linkend points to a footnote. Stylesheets stop processing if not and provide a useful error message. --- xsl/html/footnote.xsl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xsl/html/footnote.xsl b/xsl/html/footnote.xsl index 9f941b917..0c03df5e1 100644 --- a/xsl/html/footnote.xsl +++ b/xsl/html/footnote.xsl @@ -51,6 +51,15 @@ + + +ERROR: A footnoteref element has a linkend that points to an element that is not a footnote. +Typically this happens when an id attribute is accidentally applied to the child of a footnote element. +target element: +linkend/id: + + + -- 2.40.0