OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook] Footnotref linkend validation


Hi,

I edited the rules and this resolved the error.

Line 8557
            <s:assert test="local-name(//*[@xml:id=current()/@linkend]) 
= 'footnote' and namespace-uri(//*[@xml:id=current()/@linkend]) = 
'http://docbook.org/ns/docbook'">@linkend on footnoteref must point to a 
footnote.</s:assert>

I notice that a number of tests use the same @id= construct, so the bug 
would appear to be impacting these elements as well:

firstterm
glosssee
glossseealso
glossterm
synopfragmentref

Thanks,
Pete

Bob Stayton wrote:

> 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
> bobs@sagehill.net
>
>
> ----- Original Message ----- From: "Peter Ciuffetti" <Pete@Xrefer.com>
> To: <docbook@lists.oasis-open.org>
> 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: docbook-unsubscribe@lists.oasis-open.org
>> For additional commands, e-mail: docbook-help@lists.oasis-open.org
>>
>>
>>
>
>
>
>



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]