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


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

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

Subject: Re: [docbook-apps] Validation Error with Glossary Database

The basic problem is that the glossary element inclusions are
done entirely by the stylesheet, but the validation process does
not use the stylesheet.  So from the DTD point of view, the
document is not valid because it doesn't have the id's being
pointed to by the linkends.

One solution is to validate after the inclusions have been made.
That would require running a stylesheet that is mostly an identity
transform, but also handles generating the glossary with the
right set of glossary entries.  Then the result could be validated.

The other solution is to fix glossterm.auto.link. It sounds like it
has some bugs.  Can you provide a sample document?

Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Sean Wheller" <sean@enbaya.co.za>
To: <docbook-apps@lists.oasis-open.org>
Sent: Monday, February 09, 2004 2:23 PM
Subject: [docbook-apps] Validation Error with Glossary Database

> Hi,
> I have a document with glossterm entries that look as follows:
> <glossterm linkend="gt_ttl">term to link</glossterm>
> The "term to link" is defined in a glossary database.
> ...
> <glossentry id="gt_ttl">
>   <glossterm>Term to Link</glossterm>
>   <acronym>TTL</acronym>
>   <glossdef>
>     <para>Description of Term to Link</para>
>   </glossdef>
> </glossentry>
> ...
> End of Document inserts glossary as follows:
> <glossary role="auto">
>  <glossentry>
>   <glossterm>Dummy</glossterm>
>   <glossdef>
>     <para>Now you see me, next you won't.</para>
>   </glossdef>
>  </glossentry>
> </glossary>
> When I transform the glossary is stripped and generated as expected.
> But I can't validate the document.
> I get back
> E An element with the identifier "gt_ttl" must appear in the document.
> I was using the glossterm.auto.link method with glossary.collection. But
> had problems as it missed or could not locate entries that were indeed in
> database. So I switch to the method above and now can't validate.
> I dont want to switch back as the transform now works on all glossterms
> the desired result that there are no missing glossentries in the Glossary.
> But validation is essential.
> Where could the problem be?
> -- 
> Sean Wheller
> To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit

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