[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] why does xsltproc create drafts from DocBook XML?
I think the stylesheet is functioning properly, but I'm not clear what your expectation is. Your indexentry includes a zone="A" attribute, which means the destination of the link from the index entry should be the element whose id is "A", which is the part element. And that is precisely what goes into the FO file for the index entry: ... internal-destination="A"><fo:page-number-citation ref-id="A"/> And indeed the page number that is generated is for the part title page. Is that not what you expected? Bob Stayton Sagehill Enterprises bobs@sagehill.net ----- Original Message ----- From: "Tom Peters" <tpeters@xs4all.nl> To: <docbook-apps@lists.oasis-open.org> Sent: Friday, January 09, 2004 5:32 PM Subject: Re: [docbook-apps] why does xsltproc create drafts from DocBook XML? > On Fri, 9 Jan 2004, Bob Stayton wrote: > > > ----- Original Message ----- > > From: "Tom Peters" <tpeters@xs4all.nl> > > > > Excellent! These parameters give the best output I've seen sofar. > > > Two things could be improved: > > > > 2) The Register (Index) of <glossterm>s at the end refers to page 2 in all > > > cases. What can I do about that? Do I need to run a separate program to > > > build an index first? This is built-in in the toolchain that uses TeX. > > > > I'm not sure what this is. Normally glossterms don't generate page > > references. > > Is this built from <indexterm> elements in the document? If so, then it > > should > > work automatically with correct page references. Can you provide a sample? > > Yes, I think it comes from indexterms I put into glossentries: > > <glossentry id="Absorptie"> > <glossterm>Absorptie</glossterm> > <indexterm zone="A"><primary>Absorptie</primary></indexterm> > <glossdef> > <para></para> > <glossseealso otherterm="Emissie"></glossseealso> > <glossseealso otherterm="Spectrum"></glossseealso> > </glossdef> > </glossentry> > > Where in the file that contains the main text, which is different from the > file that has the glossary, I specified: > > <part label="A" id="A"> > > (I want the main text file indexed, for the terms that are in the > glossary) > > > Apparently in the .fo file it translates to: > > <fo:list-block provisional-distance-between-starts="2in" > provisional-label-separation="0.25in" space-before.optimum="1em" > space-before.minimum="0.8em" space-before.maximum="1.2em"><fo:list-item > space-before.optimum="1em" space-before.minimum="0.8em" > space-before.maximum="1.2em" id="Absorptie"><fo:list-item-label > end-indent="label-end()"><fo:block>Absorptie<fo:wrapper > id="id2906626"><!--Absorptie--></fo:wrapper></fo:block></fo:list-item-label> <fo:list-item-body > start-indent="body-start()"><fo:block space-before.optimum="1em" > space-before.minimum="0.8em" space-before.maximum="1.2em"/><fo:block>Zie > ook Emissie, Spectrum.</fo:block></fo:list-item-body></fo:list-item> > > I think the index entry in the .fo file is: > > <fo:block><fo:block>Absorptie, <fo:basic-link > xmlns:rx="http://www.renderx.com/XSL/Extensions" > xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions" > internal-destination="A"><fo:page-number-citation > ref-id="A"/></fo:basic-link></fo:block> > > -- > #>!$!%(@^%#%*(&(#@#*$^@^$##*#@&(%)@**$!(&!^(#((#&%!)%*@)(&$($$%(@#)&*!^$)^@* ^@) > > Tom "thriving on chaos" Peters > > > To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/. > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]