I think it is a bug in the Schematron rules in the DocBook RelaxNG schema:
local-name(//*[@id=current()/@linkend]) = 'footnote' ...
That should be @xml:id, I believe. I just filed a bug report on it.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
----- Original Message -----
From: "Peter Ciuffetti" <>
To: <>
Sent: Monday, February 26, 2007 11:40 AM
Subject: [docbook] Footnotref linkend validation
> Hi,
>
> I'm trying to validate a book that uses footnoteref using the Sun
> Multischema Validator. I'm being told that the linkend attribute of the
> footnoteref must point at a footnote (they do). I get this error even if
> I use the example in the documentation:
>
> 1 <?xml version='1.0'?>
> 2 <article xmlns='http://docbook.org/ns/docbook' version='5.0'>
> 3 <title>Example footnoteref</title>
> 4 <informaltable>
> 5 <tgroup cols='2'>
> 6 <tbody>
> 7 <row>
> 8 <entry>foo<footnote xml:id='fnrex1a'><para>A meaningless
> 9 word</para></footnote></entry>
> 10 <entry>3<footnote xml:id='fnrex1b'><para>A meaningless
> 11 number</para></footnote></entry>
> 12 </row>
> 13 <row>
> 14 <entry>bar<footnoteref linkend='fnrex1a'/></entry>
> 15 <entry>5<footnoteref linkend='fnrex1b'/></entry>
> 16 </row>
> 17 </tbody>
> 18 </tgroup>
> 19 </informaltable>
> 20 </article>
>
> C:\tools\rellame>java -Xss256K -Xms1024m -Xmx1548m -jar
> /tools/relames/relames.jar /docbook-5.0cr1/rng/docbook.rng
> \test\footnote.xml
> relmes verifier Copyright(C) Sun Microsystems, Inc. 2001
> parsing /docbook-5.0cr1/rng/docbook.rng
> validating \test\footnote.xml
> Error at line:14, column:43 of file:///test/footnote.xml
> @linkend on footnoteref must point to a footnote.
>
> Error at line:15, column:41 of file:///test/footnote.xml
> @linkend on footnoteref must point to a footnote.
>
> NOT valid
>
> I updated to the latest CR1 schema and to the MSV currently online at
> https://msv.dev.java.net/ though this didn't help. Is this a bug in the
> validator? Is there a more recent MSV?
>
> Thanks
> Pete Ciuffetti
> Xrefer, Ltd.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:
>
>
>