From: David Cramer Date: Mon, 15 Sep 2008 19:18:09 +0000 (+0000) Subject: Added a check to confirm that a footnoteref's linkend points to a footnote. Styleshee... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d5a6882492644694468c714b219434b8b020dc3;p=docbook-dsssl 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. --- 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: + + +