This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
bobs@sagehill.net


----- 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
this
> had problems as it missed or could not locate entries that were indeed in
the
> 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
with
> 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
http://www.oasis-open.org/mlmanage/.
>
>
>



To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]