[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: DOCBOOK-APPS: database reference database
On Mon, Mar 17, 2003 at 03:00:08PM -0500, Scott Shepard wrote: [stuff deleted] > Also, I might use definitions from other sources, that I would want to make > explicit, so I would like to use the "database" feature. glossdef does not > seem to allow <xref>, according to DocBook TDG v2.0.8. Not true. glossdef requires some block element like <para>, and <para> permits <xref> > Assuming I have the correct style, there seems to be no way to have the > glossary database and allow it to reference the biblio database. Unless I > create some sort of glossary/biblio file and include it into the main > DocBook instance. But then I do not have the convenience of having the words > I use automatically selected from the database and inserted into the HTML. I looked at the XSL a little closer, and the restriction is even stronger than that. If you are using a glossary collection, any cross references in it must be to targets within the glossary collection only. You cannot reference to targets back in the main document. If you could, then I think references to the biblioentries would work, because they have their id appearing in the main document (so that they can be pulled from the bibliography collection). The stylesheet uses the XSL document() function to open the glossary collection file. I think what happens is that the processor changes the processing context to that document. Only IDs within that context are recognized. What is even more dangerous, however, is that xrefs within the glossary collection will be recognized, even if the target glossentry is not pulled into the main document. Let's say you include glosstermA in your document, so the processor pulls that glossentry from the glossary collection into your document's glossary and formats it. If the glossdef for glosstermA has an xref to glosstermB that you don't include in your document, then it will form a link (and not report an error) to glosstermB, but glosstermB won't actually appear in your document's glossary. It forms a link that doesn't work when the user clicks on it. So even cross referencing within your glossary collection (as with See and See also) can lead to problems if you don't reference all the glossentries that are needed. Cross referencing within a glossary collection should probably be avoided for that reason. -- Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 The SCO Group fax: (831) 429-1887 email: bobs@sco.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]